Class ActionBasedChangeListenerImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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, int index, 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, 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, int index, 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, java.util.Collection<? extends 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
      onMapDelete​(CtElement currentElement, CtRole role, java.util.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, 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, java.lang.Object newValue, java.lang.Object oldValue)
      a field corresponding to the role is being set in the AST node
      void onObjectUpdate​(CtElement currentElement, CtRole role, CtElement newValue, CtElement 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>
      void
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait