|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface JCDiagnostic.DiagnosticPosition
A DiagnosticPosition provides information about the positions in a file that gave rise to a diagnostic. It always defines a "preferred" position that most accurately defines the location of the diagnostic, it may also provide a related tree node that spans that location.
| Method Summary | |
|---|---|
int |
getEndPosition(java.util.Map<JCTree,java.lang.Integer> endPosTable)
If there is a tree node, and if endPositions are available, get the end position of the tree node. |
int |
getPreferredPosition()
Get the position within the file that most accurately defines the location for the diagnostic. |
int |
getStartPosition()
If there is a tree node, get the start position of the tree node. |
JCTree |
getTree()
Gets the tree node, if any, to which the diagnostic applies. |
| Method Detail |
|---|
JCTree getTree()
int getStartPosition()
int getPreferredPosition()
int getEndPosition(java.util.Map<JCTree,java.lang.Integer> endPosTable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||