Package spoon.support.modelobs
Interface FineModelChangeListener
- All Known Implementing Classes:
ActionBasedChangeListenerImpl
,EmptyModelChangeListener
public interface FineModelChangeListener
Can be subclassed by clients who want to be notified on all changes in AST nodes
-
Method Summary
Modifier and TypeMethodDescriptionvoid
a newValue is appended to the list corresponding to the role in the AST nodevoid
a newValue is appended to the list corresponding to the role in the AST nodevoid
onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue)
an oldValue is deleted in the list corresponding to the role in the AST nodevoid
onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue)
an oldValue is deleted in the list corresponding to the role in the AST nodevoid
onListDeleteAll(CtElement currentElement, CtRole role, List field, List oldValue)
a list corresponding to the role in the AST node is emptied<K, V> void
a newValue is appended to the map corresponding to the role in the AST node<K, V> void
onMapDelete(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement oldValue)
A mapping is removed from the map corresponding to the role in the AST node<K, V> void
onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)
a map corresponding to the role in the AST node is emptiedvoid
onObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue)
a field corresponding to the role is being set to nullvoid
onObjectUpdate(CtElement currentElement, CtRole role, Object newValue, Object oldValue)
a field corresponding to the role is being set in the AST nodevoid
onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue)
a field corresponding to the role is being set in the AST nodevoid
a newValue is appended to the set corresponding to the role in the AST node<T extends Enum>
voida newValue is appended to the set corresponding to the role in the AST nodevoid
onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
onSetDelete(CtElement currentElement, CtRole role, Set field, CtElement oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
onSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue)
an oldValue is deleted in the set corresponding to the role in the AST nodevoid
onSetDeleteAll(CtElement currentElement, CtRole role, Set field, Set oldValue)
a set corresponding to the role in the AST node is emptied
-
Method Details
-
onObjectUpdate
a field corresponding to the role is being set in the AST node -
onObjectUpdate
a field corresponding to the role is being set in the AST node -
onObjectDelete
a field corresponding to the role is being set to null -
onListAdd
a newValue is appended to the list corresponding to the role in the AST node -
onListAdd
a newValue is appended to the list corresponding to the role in the AST node -
onListDelete
void onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue)an oldValue is deleted in the list corresponding to the role in the AST node -
onListDelete
void onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue)an oldValue is deleted in the list corresponding to the role in the AST node -
onListDeleteAll
a list corresponding to the role in the AST node is emptied -
onMapAdd
<K, V> void onMapAdd(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement newValue)a newValue is appended to the map corresponding to the role in the AST node -
onMapDelete
<K, V> void onMapDelete(CtElement currentElement, CtRole role, Map<K,V> field, K key, CtElement oldValue)A mapping is removed from the map corresponding to the role in the AST node- Type Parameters:
K
- the key typeV
- the value type- Parameters:
currentElement
- the element that changedrole
- the role of the field that changedfield
- the current value of the field that changedkey
- the key of the element that was deletedoldValue
- the element that was deleted
-
onMapDeleteAll
<K, V> void onMapDeleteAll(CtElement currentElement, CtRole role, Map<K,V> field, Map<K,V> oldValue)a map corresponding to the role in the AST node is emptied -
onSetAdd
a newValue is appended to the set corresponding to the role in the AST node -
onSetAdd
a newValue is appended to the set corresponding to the role in the AST node -
onSetDelete
an oldValue is deleted in the set corresponding to the role in the AST node -
onSetDelete
void onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue)an oldValue is deleted in the set corresponding to the role in the AST node -
onSetDelete
an oldValue is deleted in the set corresponding to the role in the AST node -
onSetDeleteAll
a set corresponding to the role in the AST node is emptied
-