public class CompilerMessage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CompilerMessage.Kind
As we are still 1.5 required we use a wrapper to Diagnostic.Kind and some compilers don't know jdk constants.
|
Modifier and Type | Field and Description |
---|---|
private int |
endcolumn
The end column number of the offending program text
|
private int |
endline
The end line number of the offending program text
|
private java.lang.String |
file
The name of the file containing the offending program text
|
private static java.lang.String |
JDK_6_NOTE_PREFIX |
private static java.lang.String |
JDK_6_WARNING_PREFIX |
private CompilerMessage.Kind |
kind
The kind of message.
|
private java.lang.String |
message
The actual message text produced by the language processor
|
private int |
startcolumn
The start column number of the offending program text
|
private int |
startline
The start line number of the offending program text
|
Constructor and Description |
---|
CompilerMessage(java.lang.String message)
Deprecated.
Use
CompilerMessage(String, Kind) instead |
CompilerMessage(java.lang.String message,
boolean error)
Deprecated.
Use
CompilerMessage(String, Kind) instead |
CompilerMessage(java.lang.String file,
boolean error,
int startline,
int startcolumn,
int endline,
int endcolumn,
java.lang.String message)
Deprecated.
|
CompilerMessage(java.lang.String message,
CompilerMessage.Kind kind)
Constructs a compiler message.
|
CompilerMessage(java.lang.String file,
CompilerMessage.Kind kind,
int startline,
int startcolumn,
int endline,
int endcolumn,
java.lang.String message)
Constructs a compiler message.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
cleanupMessage(java.lang.String msg) |
int |
getEndColumn()
Returns the ending column number of the program text originating this
compiler message.
|
int |
getEndLine()
Return the ending line number of the program text originating this compiler
message.
|
java.lang.String |
getFile()
Returns the filename associated with this compiler message.
|
CompilerMessage.Kind |
getKind()
Returns the kind of the compiler message.
|
java.lang.String |
getMessage()
Returns the message produced by the language processor.
|
int |
getStartColumn()
Returns the starting column number of the program text originating this
compiler message.
|
int |
getStartLine()
Returns the starting line number of the program text originating this compiler
message.
|
boolean |
isError()
Asserts whether this is an error message or not.
|
java.lang.String |
toString() |
private static final java.lang.String JDK_6_NOTE_PREFIX
private static final java.lang.String JDK_6_WARNING_PREFIX
private final CompilerMessage.Kind kind
private int startline
private int startcolumn
private int endline
private int endcolumn
private java.lang.String file
private final java.lang.String message
@Deprecated public CompilerMessage(java.lang.String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, java.lang.String message)
CompilerMessage(String, Kind, int, int, int, int, String)
insteadfile
- The name of the file containing the offending program texterror
- true
if this is a error message, or false
if it
is a warning messagestartline
- 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 message text produced by the language processorpublic CompilerMessage(java.lang.String file, CompilerMessage.Kind kind, int startline, int startcolumn, int endline, int endcolumn, java.lang.String message)
file
- The name of the file containing the offending program textkind
- The kind of messagestartline
- 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 message text produced by the language processor@Deprecated public CompilerMessage(java.lang.String message)
CompilerMessage(String, Kind)
insteadmessage
- The actual message text produced by the language processor@Deprecated public CompilerMessage(java.lang.String message, boolean error)
CompilerMessage(String, Kind)
insteadmessage
- The actual message text produced by the language processorerror
- true
if this is a error message, or false
if it
is a warning messagepublic CompilerMessage(java.lang.String message, CompilerMessage.Kind kind)
message
- The actual message text produced by the language processorkind
- The kind of messagepublic java.lang.String getFile()
public boolean isError()
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public java.lang.String getMessage()
public CompilerMessage.Kind getKind()
public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String cleanupMessage(java.lang.String msg)