public static class JCDiagnostic.SimpleDiagnosticPosition extends Object implements JCDiagnostic.DiagnosticPosition
Constructor and Description |
---|
SimpleDiagnosticPosition(int pos) |
Modifier and Type | Method and Description |
---|---|
int |
getEndPosition(EndPosTable 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.
|
public JCTree getTree()
JCDiagnostic.DiagnosticPosition
getTree
in interface JCDiagnostic.DiagnosticPosition
public int getStartPosition()
JCDiagnostic.DiagnosticPosition
getStartPosition
in interface JCDiagnostic.DiagnosticPosition
public int getPreferredPosition()
JCDiagnostic.DiagnosticPosition
getPreferredPosition
in interface JCDiagnostic.DiagnosticPosition
public int getEndPosition(EndPosTable endPosTable)
JCDiagnostic.DiagnosticPosition
getEndPosition
in interface JCDiagnostic.DiagnosticPosition
Copyright © 2017 earcam. All rights reserved.