de.grogra.xl.impl.dom
public class RuntimeModel extends RuntimeModel
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTE |
static int |
SIBLING |
BRANCH_EDGE, branchIn, CONTAINMENT_EDGE, CONTAINMENT_END_EDGE, copyIn, copyInNoRefine, copyOut, copyOutNoRefine, MARK_EDGE, MIN_NORMAL_BIT_INDEX, MIN_USER_EDGE, REFINEMENT_EDGE, SPECIAL_MASK, SUCCESSOR_EDGE| Constructor and Description |
|---|
RuntimeModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdgeBits(java.lang.Object source,
java.lang.Object target,
int bits)
Adds a set of edge bits from a
source node
to a target node. |
EdgeIterator |
createEdgeIterator(java.lang.Object node,
EdgeDirection dir)
Creates an iterator over the edges of
node. |
int |
getEdgeBits(java.lang.Object source,
java.lang.Object target)
Return the edge bits between a
source node and a
target node. |
java.lang.Class |
getNodeType()
Specifies the base type of nodes of this runtime model.
|
boolean |
isWrapperFor(java.lang.Object object,
Type type)
Tests if the object is a wrapper for values of the given type.
|
java.lang.Object |
unwrapObject(java.lang.Object wrapper)
Extracts the Object value of a wrapper.
|
currentGraph, edgeBitsIntersection, edgeBitsRemove, edgeBitsUnion, getStandardEdgeFor, initialize, isNode, setCurrentGraph, testEdgeBits, unwrapBoolean, unwrapByte, unwrapChar, unwrapDouble, unwrapFloat, unwrapInt, unwrapLong, unwrapShortpublic static final int ATTRIBUTE
public static final int SIBLING
public void addEdgeBits(java.lang.Object source,
java.lang.Object target,
int bits)
RuntimeModelsource node
to a target node.addEdgeBits in class RuntimeModelsource - the source node of the edgetarget - the target node of the edgebits - the edge bits that are to be addedpublic EdgeIterator createEdgeIterator(java.lang.Object node, EdgeDirection dir)
RuntimeModelnode. The iterator
is set to the first edge of the node, if any. The direction dir
has to be respected by the iterator.createEdgeIterator in class RuntimeModelnode - the node whose edges are to be iterateddir - direction in which edges are traversed (seen from node)public int getEdgeBits(java.lang.Object source,
java.lang.Object target)
RuntimeModelsource node and a
target node. If there is no edge at all, 0 is returned.getEdgeBits in class RuntimeModelsource - the source node of the edgetarget - the target node of the edgepublic java.lang.Class getNodeType()
RuntimeModelCompiletimeModel.getNodeType()
for the corresponding CompiletimeModel implementation.getNodeType in class RuntimeModelpublic boolean isWrapperFor(java.lang.Object object,
Type type)
RuntimeModelisWrapperFor in interface RuntimeModelisWrapperFor in class RuntimeModelobject - the potential wrapper to be testedtype - the value typetrue iff object is a wrapper for values of type typepublic java.lang.Object unwrapObject(java.lang.Object wrapper)
RuntimeModelunwrapObject in interface RuntimeModelunwrapObject in class RuntimeModelwrapper - the wrapper