public class CompilerMessage extends 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.
|
Constructor and Description |
---|
CompilerMessage(String message)
Deprecated.
Use
CompilerMessage(String, Kind) instead |
CompilerMessage(String message,
boolean error)
Deprecated.
Use
CompilerMessage(String, Kind) instead |
CompilerMessage(String file,
boolean error,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
Deprecated.
|
CompilerMessage(String message,
CompilerMessage.Kind kind)
Constructs a compiler message.
|
CompilerMessage(String file,
CompilerMessage.Kind kind,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
Constructs a compiler message.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getFile()
Returns the filename associated with this compiler message.
|
CompilerMessage.Kind |
getKind()
Returns the kind of the compiler message.
|
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.
|
String |
toString() |
@Deprecated public CompilerMessage(String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, 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(String file, CompilerMessage.Kind kind, int startline, int startcolumn, int endline, int endcolumn, 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(String message)
CompilerMessage(String, Kind)
insteadmessage
- The actual message text produced by the language processor@Deprecated public CompilerMessage(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(String message, CompilerMessage.Kind kind)
message
- The actual message text produced by the language processorkind
- The kind of messagepublic String getFile()
public boolean isError()
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public String getMessage()
public CompilerMessage.Kind getKind()
Copyright © 2015. All rights reserved.