Klasse RewriteEvent
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.RewriteEvent
- Bekannte direkte Unterklassen:
ListRewriteEvent
,NodeRewriteEvent
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
Change kind to signal that children changed.static final int
Change kind to describe that the event is an insert event.static final int
Change kind to describe that the event is an remove event.static final int
Change kind to describe that the event is an replace event.static final int
Change kind to signal that the property did not change -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract int
abstract RewriteEvent[]
abstract Object
abstract Object
abstract boolean
-
Felddetails
-
INSERTED
public static final int INSERTEDChange kind to describe that the event is an insert event. Does not apply for list events.- Siehe auch:
-
REMOVED
public static final int REMOVEDChange kind to describe that the event is an remove event. Does not apply for list events.- Siehe auch:
-
REPLACED
public static final int REPLACEDChange kind to describe that the event is an replace event. Does not apply for list events.- Siehe auch:
-
CHILDREN_CHANGED
public static final int CHILDREN_CHANGEDChange kind to signal that children changed. Does only apply for list events.- Siehe auch:
-
UNCHANGED
public static final int UNCHANGEDChange kind to signal that the property did not change- Siehe auch:
-
-
Konstruktordetails
-
RewriteEvent
public RewriteEvent()
-
-
Methodendetails
-
getChangeKind
public abstract int getChangeKind()- Gibt zurück:
- Returns the event's change kind.
-
isListRewrite
public abstract boolean isListRewrite()- Gibt zurück:
- Returns true if the given event is a list event.
-
getOriginalValue
- Gibt zurück:
- 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
- Gibt zurück:
- 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
- Gibt zurück:
- Return the events describing the changes in a list. returns
null
if the event is not a list event.
-