Package spoon.support.modelobs
Class EmptyModelChangeListener
java.lang.Object
spoon.support.modelobs.EmptyModelChangeListener
- All Implemented Interfaces:
FineModelChangeListener
is the listener that creates the action on the model. This default listener does nothing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoida newValue is appended to the list corresponding to the role in the AST nodevoida newValue is appended to the list corresponding to the role in the AST nodevoidonListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue) an oldValue is deleted in the list corresponding to the role in the AST nodevoidonListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue) an oldValue is deleted in the list corresponding to the role in the AST nodevoidonListDeleteAll(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 emptiedvoidonObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue) a field corresponding to the role is being set to nullvoidonObjectUpdate(CtElement currentElement, CtRole role, Object newValue, Object oldValue) a field corresponding to the role is being set in the AST nodevoidonObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue) a field corresponding to the role is being set in the AST nodevoida 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 nodevoidonSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue) an oldValue is deleted in the set corresponding to the role in the AST nodevoidonSetDelete(CtElement currentElement, CtRole role, Set field, CtElement oldValue) an oldValue is deleted in the set corresponding to the role in the AST nodevoidonSetDelete(CtElement currentElement, CtRole role, Set field, ModifierKind oldValue) an oldValue is deleted in the set corresponding to the role in the AST nodevoidonSetDeleteAll(CtElement currentElement, CtRole role, Set field, Set oldValue) a set corresponding to the role in the AST node is emptied
-
Constructor Details
-
EmptyModelChangeListener
public EmptyModelChangeListener()
-
-
Method Details
-
onObjectUpdate
public void onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue) Description copied from interface:FineModelChangeListenera field corresponding to the role is being set in the AST node- Specified by:
onObjectUpdatein interfaceFineModelChangeListener
-
onObjectUpdate
Description copied from interface:FineModelChangeListenera field corresponding to the role is being set in the AST node- Specified by:
onObjectUpdatein interfaceFineModelChangeListener
-
onObjectDelete
Description copied from interface:FineModelChangeListenera field corresponding to the role is being set to null- Specified by:
onObjectDeletein interfaceFineModelChangeListener
-
onListAdd
Description copied from interface:FineModelChangeListenera newValue is appended to the list corresponding to the role in the AST node- Specified by:
onListAddin interfaceFineModelChangeListener
-
onListAdd
public void onListAdd(CtElement currentElement, CtRole role, List field, int index, CtElement newValue) Description copied from interface:FineModelChangeListenera newValue is appended to the list corresponding to the role in the AST node- Specified by:
onListAddin interfaceFineModelChangeListener
-
onListDelete
public void onListDelete(CtElement currentElement, CtRole role, List field, Collection<? extends CtElement> oldValue) Description copied from interface:FineModelChangeListeneran oldValue is deleted in the list corresponding to the role in the AST node- Specified by:
onListDeletein interfaceFineModelChangeListener
-
onListDelete
public void onListDelete(CtElement currentElement, CtRole role, List field, int index, CtElement oldValue) Description copied from interface:FineModelChangeListeneran oldValue is deleted in the list corresponding to the role in the AST node- Specified by:
onListDeletein interfaceFineModelChangeListener
-
onListDeleteAll
Description copied from interface:FineModelChangeListenera list corresponding to the role in the AST node is emptied- Specified by:
onListDeleteAllin interfaceFineModelChangeListener
-
onMapAdd
public <K,V> void onMapAdd(CtElement currentElement, CtRole role, Map<K, V> field, K key, CtElement newValue) Description copied from interface:FineModelChangeListenera newValue is appended to the map corresponding to the role in the AST node- Specified by:
onMapAddin interfaceFineModelChangeListener
-
onMapDelete
public <K,V> void onMapDelete(CtElement currentElement, CtRole role, Map<K, V> field, K key, CtElement oldValue) Description copied from interface:FineModelChangeListenerA mapping is removed from the map corresponding to the role in the AST node- Specified by:
onMapDeletein interfaceFineModelChangeListener- 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
public <K,V> void onMapDeleteAll(CtElement currentElement, CtRole role, Map<K, V> field, Map<K, V> oldValue) Description copied from interface:FineModelChangeListenera map corresponding to the role in the AST node is emptied- Specified by:
onMapDeleteAllin interfaceFineModelChangeListener
-
onSetAdd
Description copied from interface:FineModelChangeListenera newValue is appended to the set corresponding to the role in the AST node- Specified by:
onSetAddin interfaceFineModelChangeListener
-
onSetAdd
Description copied from interface:FineModelChangeListenera newValue is appended to the set corresponding to the role in the AST node- Specified by:
onSetAddin interfaceFineModelChangeListener
-
onSetDelete
Description copied from interface:FineModelChangeListeneran oldValue is deleted in the set corresponding to the role in the AST node- Specified by:
onSetDeletein interfaceFineModelChangeListener
-
onSetDelete
public void onSetDelete(CtElement currentElement, CtRole role, Set field, Collection<ModifierKind> oldValue) Description copied from interface:FineModelChangeListeneran oldValue is deleted in the set corresponding to the role in the AST node- Specified by:
onSetDeletein interfaceFineModelChangeListener
-
onSetDelete
Description copied from interface:FineModelChangeListeneran oldValue is deleted in the set corresponding to the role in the AST node- Specified by:
onSetDeletein interfaceFineModelChangeListener
-
onSetDeleteAll
Description copied from interface:FineModelChangeListenera set corresponding to the role in the AST node is emptied- Specified by:
onSetDeleteAllin interfaceFineModelChangeListener
-