CompilerError
public class CompilerMessage
extends java.lang.Object
Modifier and Type | Class | 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 | 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 | 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.
|
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() |
@Deprecated public CompilerMessage(java.lang.String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, java.lang.String message)
file
- 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
Copyright © 2018. All rights reserved.