Class FixedPosition
java.lang.Object
com.google.errorprone.fixes.FixedPosition
- All Implemented Interfaces:
com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
public final class FixedPosition
extends Object
implements com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
A
JCDiagnostic.DiagnosticPosition
with a fixed position.-
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
-
FixedPosition
public FixedPosition(com.sun.source.tree.Tree tree, int startPosition)
-
-
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
-