Class TrackedNodePosition
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.TrackedNodePosition
- All Implemented Interfaces:
ITrackedNodePosition
-
Constructor Summary
ConstructorDescriptionTrackedNodePosition(org.eclipse.text.edits.TextEditGroup group, ASTNode node)
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the original or modified length of the tracked node depending if called before or after the rewrite is applied.int
Returns the original or modified start position of the tracked node depending if called before or after the rewrite is applied.
-
Constructor Details
-
TrackedNodePosition
-
-
Method Details
-
getStartPosition
public int getStartPosition()Description copied from interface:ITrackedNodePosition
Returns the original or modified start position of the tracked node depending if called before or after the rewrite is applied.-1
is returned for removed nodes.- Specified by:
getStartPosition
in interfaceITrackedNodePosition
- Returns:
- the original or modified start position of the tracked node
-
getLength
public int getLength()Description copied from interface:ITrackedNodePosition
Returns the original or modified length of the tracked node depending if called before or after the rewrite is applied.-1
is returned for removed nodes.- Specified by:
getLength
in interfaceITrackedNodePosition
- Returns:
- the original or modified length of the tracked node
-