|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.util.JCDiagnostic.SimpleDiagnosticPosition
public static class JCDiagnostic.SimpleDiagnosticPosition
A DiagnosticPosition that simply identifies a position, but no related tree node, as the location for a diagnostic. Used for scanner and parser diagnostics.
| Field Summary | |
|---|---|
private int |
pos
|
| Constructor Summary | |
|---|---|
JCDiagnostic.SimpleDiagnosticPosition(int pos)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int pos
| Constructor Detail |
|---|
public JCDiagnostic.SimpleDiagnosticPosition(int pos)
| Method Detail |
|---|
public JCTree getTree()
JCDiagnostic.DiagnosticPosition
getTree in interface JCDiagnostic.DiagnosticPositionpublic int getStartPosition()
JCDiagnostic.DiagnosticPosition
getStartPosition in interface JCDiagnostic.DiagnosticPositionpublic int getPreferredPosition()
JCDiagnostic.DiagnosticPosition
getPreferredPosition in interface JCDiagnostic.DiagnosticPositionpublic int getEndPosition(java.util.Map<JCTree,java.lang.Integer> endPosTable)
JCDiagnostic.DiagnosticPosition
getEndPosition in interface JCDiagnostic.DiagnosticPosition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||