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 Details

    • IndexedPosition

      public IndexedPosition(int startPos, int endPos)
  • Method Details

    • getTree

      public com.sun.tools.javac.tree.JCTree getTree()
      Specified by:
      getTree in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
    • getStartPosition

      public int getStartPosition()
      Specified by:
      getStartPosition in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
    • getPreferredPosition

      public int getPreferredPosition()
      Specified by:
      getPreferredPosition in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
    • getEndPosition

      public int getEndPosition(com.sun.tools.javac.tree.EndPosTable endPosTable)
      Specified by:
      getEndPosition in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition