public abstract class ActionBasedChangeListenerImpl extends java.lang.Object implements ActionBasedChangeListener, FineModelChangeListener
Constructor and Description |
---|
ActionBasedChangeListenerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
onAction(Action action)
when an element is changed
|
void |
onAdd(AddAction action)
when an element is added
|
void |
onDelete(DeleteAction action)
when an element is removed
|
void |
onDeleteAll(DeleteAllAction action)
when all element are removed
|
void |
onListAdd(CtElement currentElement,
CtRole role,
java.util.List field,
CtElement newValue)
a newValue is appended to the list corresponding to the role in the AST node
|
void |
onListAdd(CtElement currentElement,
CtRole role,
java.util.List field,
int index,
CtElement newValue)
a newValue is appended to the list corresponding to the role in the AST node
|
void |
onListDelete(CtElement currentElement,
CtRole role,
java.util.List field,
java.util.Collection<? extends CtElement> oldValue)
an oldValue is deleted in the list corresponding to the role in the AST node
|
void |
onListDelete(CtElement currentElement,
CtRole role,
java.util.List field,
int index,
CtElement oldValue)
an oldValue is deleted in the list corresponding to the role in the AST node
|
void |
onListDeleteAll(CtElement currentElement,
CtRole role,
java.util.List field,
java.util.List oldValue)
a list corresponding to the role in the AST node is emptied
|
<K,V> void |
onMapAdd(CtElement currentElement,
CtRole role,
java.util.Map<K,V> field,
K key,
CtElement newValue)
a newValue is appended to the map corresponding to the role in the AST node
|
<K,V> void |
onMapDeleteAll(CtElement currentElement,
CtRole role,
java.util.Map<K,V> field,
java.util.Map<K,V> oldValue)
a map corresponding to the role in the AST node is emptied
|
void |
onObjectDelete(CtElement currentElement,
CtRole role,
CtElement oldValue)
a field corresponding to the role is being set to null
|
void |
onObjectUpdate(CtElement currentElement,
CtRole role,
CtElement newValue,
CtElement oldValue)
a field corresponding to the role is being set in the AST node
|
void |
onObjectUpdate(CtElement currentElement,
CtRole role,
java.lang.Object newValue,
java.lang.Object oldValue)
a field corresponding to the role is being set in the AST node
|
void |
onSetAdd(CtElement currentElement,
CtRole role,
java.util.Set field,
CtElement newValue)
a newValue is appended to the set corresponding to the role in the AST node
|
<T extends java.lang.Enum> |
onSetAdd(CtElement currentElement,
CtRole role,
java.util.Set field,
T newValue)
a newValue is appended to the set corresponding to the role in the AST node
|
void |
onSetDelete(CtElement currentElement,
CtRole role,
java.util.Set field,
java.util.Collection<ModifierKind> oldValue)
an oldValue is deleted in the set corresponding to the role in the AST node
|
void |
onSetDelete(CtElement currentElement,
CtRole role,
java.util.Set field,
CtElement oldValue)
an oldValue is deleted in the set corresponding to the role in the AST node
|
void |
onSetDelete(CtElement currentElement,
CtRole role,
java.util.Set field,
ModifierKind oldValue)
an oldValue is deleted in the set corresponding to the role in the AST node
|
void |
onSetDeleteAll(CtElement currentElement,
CtRole role,
java.util.Set field,
java.util.Set oldValue)
a set corresponding to the role in the AST node is emptied
|
void |
onUpdate(UpdateAction action)
when an element is modified
|
public void onObjectUpdate(CtElement currentElement, CtRole role, CtElement newValue, CtElement oldValue)
FineModelChangeListener
onObjectUpdate
in interface FineModelChangeListener
public void onObjectUpdate(CtElement currentElement, CtRole role, java.lang.Object newValue, java.lang.Object oldValue)
FineModelChangeListener
onObjectUpdate
in interface FineModelChangeListener
public void onObjectDelete(CtElement currentElement, CtRole role, CtElement oldValue)
FineModelChangeListener
onObjectDelete
in interface FineModelChangeListener
public void onListAdd(CtElement currentElement, CtRole role, java.util.List field, CtElement newValue)
FineModelChangeListener
onListAdd
in interface FineModelChangeListener
public void onListAdd(CtElement currentElement, CtRole role, java.util.List field, int index, CtElement newValue)
FineModelChangeListener
onListAdd
in interface FineModelChangeListener
public void onListDelete(CtElement currentElement, CtRole role, java.util.List field, java.util.Collection<? extends CtElement> oldValue)
FineModelChangeListener
onListDelete
in interface FineModelChangeListener
public void onListDelete(CtElement currentElement, CtRole role, java.util.List field, int index, CtElement oldValue)
FineModelChangeListener
onListDelete
in interface FineModelChangeListener
public void onListDeleteAll(CtElement currentElement, CtRole role, java.util.List field, java.util.List oldValue)
FineModelChangeListener
onListDeleteAll
in interface FineModelChangeListener
public <K,V> void onMapAdd(CtElement currentElement, CtRole role, java.util.Map<K,V> field, K key, CtElement newValue)
FineModelChangeListener
onMapAdd
in interface FineModelChangeListener
public <K,V> void onMapDeleteAll(CtElement currentElement, CtRole role, java.util.Map<K,V> field, java.util.Map<K,V> oldValue)
FineModelChangeListener
onMapDeleteAll
in interface FineModelChangeListener
public void onSetAdd(CtElement currentElement, CtRole role, java.util.Set field, CtElement newValue)
FineModelChangeListener
onSetAdd
in interface FineModelChangeListener
public <T extends java.lang.Enum> void onSetAdd(CtElement currentElement, CtRole role, java.util.Set field, T newValue)
FineModelChangeListener
onSetAdd
in interface FineModelChangeListener
public void onSetDelete(CtElement currentElement, CtRole role, java.util.Set field, CtElement oldValue)
FineModelChangeListener
onSetDelete
in interface FineModelChangeListener
public void onSetDelete(CtElement currentElement, CtRole role, java.util.Set field, java.util.Collection<ModifierKind> oldValue)
FineModelChangeListener
onSetDelete
in interface FineModelChangeListener
public void onSetDelete(CtElement currentElement, CtRole role, java.util.Set field, ModifierKind oldValue)
FineModelChangeListener
onSetDelete
in interface FineModelChangeListener
public void onSetDeleteAll(CtElement currentElement, CtRole role, java.util.Set field, java.util.Set oldValue)
FineModelChangeListener
onSetDeleteAll
in interface FineModelChangeListener
public void onDelete(DeleteAction action)
ActionBasedChangeListener
onDelete
in interface ActionBasedChangeListener
action
- contains information of the changepublic void onDeleteAll(DeleteAllAction action)
ActionBasedChangeListener
onDeleteAll
in interface ActionBasedChangeListener
action
- contains information of the changepublic void onAdd(AddAction action)
ActionBasedChangeListener
onAdd
in interface ActionBasedChangeListener
action
- contains information of the changepublic void onUpdate(UpdateAction action)
ActionBasedChangeListener
onUpdate
in interface ActionBasedChangeListener
action
- contains information of the changepublic void onAction(Action action)
ActionBasedChangeListener
onAction
in interface ActionBasedChangeListener
action
- contains information of the changeCopyright © 2007–2021 Inria. All rights reserved.