org.eclipse.emf.henshin.interpreter.util
Class HenshinEGraph
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
java.util.LinkedHashSet<EObject>
org.eclipse.emf.henshin.interpreter.impl.EGraphImpl
org.eclipse.emf.henshin.interpreter.util.HenshinEGraph
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<EObject>, Collection<EObject>, Set<EObject>, Adapter, EGraph
public class HenshinEGraph
- extends EGraphImpl
- implements Adapter
Graph
-to-EGraph
converter.
- See Also:
- Serialized Form
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.EGraphImpl |
add, addAll, addChildParentRelation, addEPackage, addGraph, addTree, clear, copy, getCrossReferenceAdapter, getDomain, getDomain, getDomainSize, getRoots, initializeContents, remove, removeAll, removeGraph, removeTree, toString |
henshinGraph
protected final Graph henshinGraph
node2object
protected Map<Node,EObject> node2object
object2node
protected Map<EObject,Node> object2node
HenshinEGraph
public HenshinEGraph(Graph graph)
- Default constructor.
- Parameters:
graph
- The Henshin graph.
didAdd
public void didAdd(EObject eObject)
- Description copied from class:
EGraphImpl
- Notify that an object has been added to the graph.
- Overrides:
didAdd
in class EGraphImpl
- Parameters:
eObject
- Added object.
createAttribute
protected Attribute createAttribute()
createEdge
protected Edge createEdge()
createNode
protected Node createNode()
didRemove
public void didRemove(EObject object)
- Description copied from class:
EGraphImpl
- Notify that an object has been removed from the graph.
- Overrides:
didRemove
in class EGraphImpl
- Parameters:
object
- Removed object.
updateEGraph
public void updateEGraph()
- This methods will update the EMF representation of the Henshin-Graph.
getTarget
public Notifier getTarget()
- Specified by:
getTarget
in interface Adapter
isAdapterForType
public boolean isAdapterForType(Object type)
- Specified by:
isAdapterForType
in interface Adapter
notifyChanged
public void notifyChanged(Notification notification)
- Specified by:
notifyChanged
in interface Adapter
setTarget
public void setTarget(Notifier newTarget)
- Specified by:
setTarget
in interface Adapter
getNode2ObjectMap
public Map<Node,EObject> getNode2ObjectMap()
setNode2ObjectMap
public void setNode2ObjectMap(Map<Node,EObject> node2object)
getObject2NodeMap
public Map<EObject,Node> getObject2NodeMap()
setObject2NodeMap
public void setObject2NodeMap(Map<EObject,Node> object2node)