public class CompilerError extends Object
Constructor and Description |
---|
CompilerError(String message)
The warning message constructor.
|
CompilerError(String message,
boolean error)
The error message constructor.
|
CompilerError(String file,
boolean error,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
The error message constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getEndColumn()
Return the ending column number of the program text originating this
error
|
int |
getEndLine()
Return the ending line number of the program text originating this error
|
String |
getFile()
Return the filename associated with this compiler error.
|
String |
getMessage()
Return the message produced by the language processor
|
int |
getStartColumn()
Return the starting column number of the program text originating this
error
|
int |
getStartLine()
Return the starting line number of the program text originating this error
|
boolean |
isError()
Assert whether this is a severe error or a warning
|
String |
toString() |
public CompilerError(String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, String message)
file
- The name of the file containing the offending program texterror
- Is this a severe error or a warning?startline
- The start line number of the offending program textstartcolumn
- The start column number of the offending program textendline
- The end line number of the offending program textendcolumn
- The end column number of the offending program textmessage
- The actual error text produced by the language processorpublic CompilerError(String message)
message
- The actual error text produced by the language processorpublic CompilerError(String message, boolean error)
message
- The actual error text produced by the language processorerror
- whether it was an error or informationalpublic String getFile()
public boolean isError()
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public String getMessage()
Copyright © 2001-2012 Codehaus. All Rights Reserved.