Class IndexedPosition
java.lang.Object
com.google.errorprone.fixes.IndexedPosition
- All Implemented Interfaces:
com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
public class IndexedPosition
extends Object
implements com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
Describes a position that only has a start and end index.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getEndPosition
(com.sun.tools.javac.tree.EndPosTable endPosTable) int
int
com.sun.tools.javac.tree.JCTree
getTree()
-
Constructor Details
-
IndexedPosition
public IndexedPosition(int startPos, int endPos)
-
-
Method Details
-
getTree
public com.sun.tools.javac.tree.JCTree getTree()- Specified by:
getTree
in interfacecom.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
-
getStartPosition
public int getStartPosition()- Specified by:
getStartPosition
in interfacecom.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
-
getPreferredPosition
public int getPreferredPosition()- Specified by:
getPreferredPosition
in interfacecom.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
-
getEndPosition
public int getEndPosition(com.sun.tools.javac.tree.EndPosTable endPosTable) - Specified by:
getEndPosition
in interfacecom.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
-