java.lang.Object
de.grogra.xl.impl.base.RuntimeModel
de.grogra.xl.impl.dom.RuntimeModel
- All Implemented Interfaces:
RuntimeModel
-
Field Summary
Fields inherited from class de.grogra.xl.impl.base.RuntimeModel
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeBits
(Object source, Object target, int bits) Adds a set of edge bits from asource
node to atarget
node.createEdgeIterator
(Object node, EdgeDirection dir) Creates an iterator over the edges ofnode
.int
getEdgeBits
(Object source, Object target) Return the edge bits between asource
node and atarget
node.Specifies the base type of nodes of this runtime model.boolean
isWrapperFor
(Object object, Type type) Tests if the object is a wrapper for values of the given type.unwrapObject
(Object wrapper) Extracts the Object value of a wrapper.Methods inherited from class de.grogra.xl.impl.base.RuntimeModel
currentGraph, edgeBitsIntersection, edgeBitsRemove, edgeBitsUnion, getStandardEdgeFor, initialize, isNode, setCurrentGraph, testEdgeBits, unwrapBoolean, unwrapByte, unwrapChar, unwrapDouble, unwrapFloat, unwrapInt, unwrapLong, unwrapShort
-
Field Details
-
SIBLING
public static final int SIBLING- See Also:
-
ATTRIBUTE
public static final int ATTRIBUTE- See Also:
-
-
Constructor Details
-
RuntimeModel
public RuntimeModel()
-
-
Method Details
-
getNodeType
Description copied from class:RuntimeModel
Specifies the base type of nodes of this runtime model. This should return the same type asCompiletimeModel.getNodeType()
for the correspondingCompiletimeModel
implementation.- Specified by:
getNodeType
in classRuntimeModel
- Returns:
- base type of nodes
-
addEdgeBits
Description copied from class:RuntimeModel
Adds a set of edge bits from asource
node to atarget
node.- Specified by:
addEdgeBits
in classRuntimeModel
- Parameters:
source
- the source node of the edgetarget
- the target node of the edgebits
- the edge bits that are to be added
-
getEdgeBits
Description copied from class:RuntimeModel
Return the edge bits between asource
node and atarget
node. If there is no edge at all, 0 is returned.- Specified by:
getEdgeBits
in classRuntimeModel
- Parameters:
source
- the source node of the edgetarget
- the target node of the edge- Returns:
- the edge bits
-
isWrapperFor
Description copied from interface:RuntimeModel
Tests if the object is a wrapper for values of the given type.- Specified by:
isWrapperFor
in interfaceRuntimeModel
- Overrides:
isWrapperFor
in classRuntimeModel
- Parameters:
object
- the potential wrapper to be testedtype
- the value type- Returns:
true
iffobject
is a wrapper for values of typetype
-
unwrapObject
Description copied from interface:RuntimeModel
Extracts the Object value of a wrapper.- Specified by:
unwrapObject
in interfaceRuntimeModel
- Overrides:
unwrapObject
in classRuntimeModel
- Parameters:
wrapper
- the wrapper- Returns:
- the wrapped value of the wrapper
-
createEdgeIterator
Description copied from class:RuntimeModel
Creates an iterator over the edges ofnode
. The iterator is set to the first edge of the node, if any. The directiondir
has to be respected by the iterator.- Specified by:
createEdgeIterator
in classRuntimeModel
- Parameters:
node
- the node whose edges are to be iterateddir
- direction in which edges are traversed (seen fromnode
)- Returns:
- an edge iterator
-