Class TrackedNodePosition
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.TrackedNodePosition
- All Implemented Interfaces:
ITrackedNodePosition
-
Constructor Summary
ConstructorsConstructorDescriptionTrackedNodePosition(org.eclipse.text.edits.TextEditGroup group, ASTNode node) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the original or modified length of the tracked node depending if called before or after the rewrite is applied.intReturns 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:ITrackedNodePositionReturns the original or modified start position of the tracked node depending if called before or after the rewrite is applied.-1is returned for removed nodes.- Specified by:
getStartPositionin interfaceITrackedNodePosition- Returns:
- the original or modified start position of the tracked node
-
getLength
public int getLength()Description copied from interface:ITrackedNodePositionReturns the original or modified length of the tracked node depending if called before or after the rewrite is applied.-1is returned for removed nodes.- Specified by:
getLengthin interfaceITrackedNodePosition- Returns:
- the original or modified length of the tracked node
-