public class TrackedNodePosition extends java.lang.Object implements ITrackedNodePosition
| Constructor and Description |
|---|
TrackedNodePosition(TextEditGroup group,
ASTNode node) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Returns the original or modified length of the tracked node depending if called before
or after the rewrite is applied.
|
int |
getStartPosition()
Returns the original or modified start position of the tracked node depending if called before
or after the rewrite is applied.
|
public TrackedNodePosition(TextEditGroup group,
ASTNode node)
public int getStartPosition()
ITrackedNodePosition-1 is returned for removed nodes.getStartPosition in interface ITrackedNodePositionpublic int getLength()
ITrackedNodePosition-1 is returned for removed nodes.getLength in interface ITrackedNodePosition