public class AdjustedPosition extends Object implements com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
Modifier and Type | Field and Description |
---|---|
protected int |
endPositionAdjustment |
protected com.sun.tools.javac.tree.JCTree |
position |
protected int |
startPositionAdjustment |
Constructor and Description |
---|
AdjustedPosition(com.sun.tools.javac.tree.JCTree position,
int startPosAdjustment,
int endPosAdjustment) |
Modifier and Type | Method and Description |
---|---|
int |
getEndPosition(com.sun.tools.javac.tree.EndPosTable endPositions) |
int |
getPreferredPosition() |
int |
getStartPosition() |
com.sun.tools.javac.tree.JCTree |
getTree() |
protected final com.sun.tools.javac.tree.JCTree position
protected final int startPositionAdjustment
protected final int endPositionAdjustment
public AdjustedPosition(com.sun.tools.javac.tree.JCTree position, int startPosAdjustment, int endPosAdjustment)
public int getStartPosition()
getStartPosition
in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
public com.sun.tools.javac.tree.JCTree getTree()
getTree
in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
public int getPreferredPosition()
getPreferredPosition
in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
public int getEndPosition(com.sun.tools.javac.tree.EndPosTable endPositions)
getEndPosition
in interface com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition
Copyright © 2017. All rights reserved.