static class ModelChangeEvents.RemoveFieldEvent extends java.lang.Object implements ModelChangeEvent
Constructor and Description |
---|
RemoveFieldEvent(ObjectValue parent,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Returns a human-readable description of the event.
|
java.util.Collection<Variable> |
execute(java.util.Collection<Variable> variables)
Executes the event.
|
java.lang.String |
getFieldName() |
java.util.Collection<HeapSubStructure> |
getModifiedSubStructures()
Gets all the heap sub structures which were modified by this model change event.
|
ObjectValue |
getParent() |
Value |
getValueToRemove() |
java.util.Collection<Variable> |
undo(java.util.Collection<Variable> variables)
Undoes the effects of
ModelChangeEvent.execute(Collection) . |
public RemoveFieldEvent(ObjectValue parent, java.lang.String fieldName)
public java.util.Collection<Variable> execute(java.util.Collection<Variable> variables)
ModelChangeEvent
execute
in interface ModelChangeEvent
variables
- The collection of variables. This collection should not be changed as no guarantees are made
on the kind of collection. Variables can both be added and removed to the result collection to
signal that these variables should be added/removed.public java.util.Collection<Variable> undo(java.util.Collection<Variable> variables)
ModelChangeEvent
ModelChangeEvent.execute(Collection)
.undo
in interface ModelChangeEvent
public java.lang.String describe()
ModelChangeEvent
describe
in interface ModelChangeEvent
public ObjectValue getParent()
public java.lang.String getFieldName()
public Value getValueToRemove()
public java.util.Collection<HeapSubStructure> getModifiedSubStructures()
ModelChangeEvent
ModelChangeEvent.execute(Collection)
method has been executed. Otherwise it may throw exceptions or return an incorrect result.getModifiedSubStructures
in interface ModelChangeEvent