Class TrackedNodePosition

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.TrackedNodePosition
All Implemented Interfaces:
ITrackedNodePosition

public class TrackedNodePosition extends Object implements ITrackedNodePosition
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrackedNodePosition​(org.eclipse.text.edits.TextEditGroup group, ASTNode node)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TrackedNodePosition

      public TrackedNodePosition(org.eclipse.text.edits.TextEditGroup group, ASTNode node)
  • 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 interface ITrackedNodePosition
      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 interface ITrackedNodePosition
      Returns:
      the original or modified length of the tracked node