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 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 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