java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.RewriteEvent
Direct Known Subclasses:
ListRewriteEvent, NodeRewriteEvent

public abstract class RewriteEvent extends Object
  • Field Details

    • INSERTED

      public static final int INSERTED
      Change kind to describe that the event is an insert event. Does not apply for list events.
      See Also:
      Constant Field Values
    • REMOVED

      public static final int REMOVED
      Change kind to describe that the event is an remove event. Does not apply for list events.
      See Also:
      Constant Field Values
    • REPLACED

      public static final int REPLACED
      Change kind to describe that the event is an replace event. Does not apply for list events.
      See Also:
      Constant Field Values
    • CHILDREN_CHANGED

      public static final int CHILDREN_CHANGED
      Change kind to signal that children changed. Does only apply for list events.
      See Also:
      Constant Field Values
    • UNCHANGED

      public static final int UNCHANGED
      Change kind to signal that the property did not change
      See Also:
      Constant Field Values
  • Constructor Details

    • RewriteEvent

      public RewriteEvent()
  • Method Details

    • getChangeKind

      public abstract int getChangeKind()
      Returns:
      Returns the event's change kind.
    • isListRewrite

      public abstract boolean isListRewrite()
      Returns:
      Returns true if the given event is a list event.
    • getOriginalValue

      public abstract Object getOriginalValue()
      Returns:
      Returns the original value. For lists this is a List of ASTNodes, for non-list events this can be an ASTNode (for node properties), Integer (for an integer property), Boolean (for boolean node properties) or properties like Operator. null is returned if the event is an insert event.
    • getNewValue

      public abstract Object getNewValue()
      Returns:
      Returns the new value. For lists this is a List of ASTNodes, for non-list events this can be an ASTNode (for node properties), Integer (for an integer property), Boolean (for boolean node properties) or properties like Operator. null is returned if the event is a remove event.
    • getChildren

      public abstract RewriteEvent[] getChildren()
      Returns:
      Return the events describing the changes in a list. returns null if the event is not a list event.