public interface SourceError extends SourceElement
Modifier and Type | Field and Description |
---|---|
static SourceError[] |
EMPTY_ARRAY |
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
Modifier and Type | Method and Description |
---|---|
int |
getErrorCategory()
Gets the error category of this error.
|
short |
getErrorCode()
Gets the numeric code describing this error.
|
int |
getErrorData0()
Deprecated.
Use getErrorIntData0();
|
int |
getErrorData1()
Deprecated.
Use getErrorIntData1();
|
int |
getErrorIntData0()
Some error codes are actually more general categories.
|
int |
getErrorIntData1()
Some error codes are actually more general categories.
|
java.lang.String |
getErrorMessage() |
java.lang.Object |
getErrorRefData(int n)
Gets the reference data at the specified index.
|
java.lang.Object |
getErrorRefData0() |
java.lang.Object |
getErrorRefData1() |
int |
getErrorSeverity()
Gets the severity rating of this error.
|
SourceElement |
getErrorSymbol()
This needs to be a separate method because all errors are
currently constructed off of the root and not off of the
syntactically enclosing element.
|
short |
getErrorToken() |
javax.tools.Diagnostic |
getOriginalDiagnostic()
Returns the original Diagnostic instance IFF this is a SourceError synthesized
from a Diagnostic instance.
|
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getJdkVersion, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
static final SourceError[] EMPTY_ARRAY
short getErrorCode()
JavaErrors
int getErrorSeverity()
int getErrorCategory()
short getErrorToken()
java.lang.String getErrorMessage()
@Deprecated int getErrorData0()
@Deprecated int getErrorData1()
int getErrorIntData0()
int getErrorIntData1()
java.lang.Object getErrorRefData0()
java.lang.Object getErrorRefData1()
java.lang.Object getErrorRefData(int n)
n
- 0-based.SourceElement getErrorSymbol()
javax.tools.Diagnostic getOriginalDiagnostic()