public interface ModelChangeEvent
HeapContent
instance.
Any kind of change can be performed in a model change event, and these events support both undo and redo.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.util.Collection<HeapSubStructure> |
getModifiedSubStructures()
Gets all the heap sub structures which were modified by this model change event.
|
java.util.Collection<Variable> |
undo(java.util.Collection<Variable> variables)
Undoes the effects of
execute(Collection) . |
java.util.Collection<Variable> execute(java.util.Collection<Variable> variables)
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.java.util.Collection<Variable> undo(java.util.Collection<Variable> variables)
execute(Collection)
.java.lang.String describe()
java.util.Collection<HeapSubStructure> getModifiedSubStructures()
execute(Collection)
method has been executed. Otherwise it may throw exceptions or return an incorrect result.