java.lang.Object
de.grogra.xl.impl.base.RuntimeModel
de.grogra.xl.impl.dom.RuntimeModel
- All Implemented Interfaces:
RuntimeModel
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdgeBits(Object source, Object target, int bits) Adds a set of edge bits from asourcenode to atargetnode.createEdgeIterator(Object node, EdgeDirection dir) Creates an iterator over the edges ofnode.intgetEdgeBits(Object source, Object target) Return the edge bits between asourcenode and atargetnode.Specifies the base type of nodes of this runtime model.booleanisWrapperFor(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:RuntimeModelSpecifies the base type of nodes of this runtime model. This should return the same type asCompiletimeModel.getNodeType()for the correspondingCompiletimeModelimplementation.- Specified by:
getNodeTypein classRuntimeModel- Returns:
- base type of nodes
-
addEdgeBits
Description copied from class:RuntimeModelAdds a set of edge bits from asourcenode to atargetnode.- Specified by:
addEdgeBitsin 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:RuntimeModelReturn the edge bits between asourcenode and atargetnode. If there is no edge at all, 0 is returned.- Specified by:
getEdgeBitsin classRuntimeModel- Parameters:
source- the source node of the edgetarget- the target node of the edge- Returns:
- the edge bits
-
isWrapperFor
Description copied from interface:RuntimeModelTests if the object is a wrapper for values of the given type.- Specified by:
isWrapperForin interfaceRuntimeModel- Overrides:
isWrapperForin classRuntimeModel- Parameters:
object- the potential wrapper to be testedtype- the value type- Returns:
trueiffobjectis a wrapper for values of typetype
-
unwrapObject
Description copied from interface:RuntimeModelExtracts the Object value of a wrapper.- Specified by:
unwrapObjectin interfaceRuntimeModel- Overrides:
unwrapObjectin classRuntimeModel- Parameters:
wrapper- the wrapper- Returns:
- the wrapped value of the wrapper
-
createEdgeIterator
Description copied from class:RuntimeModelCreates an iterator over the edges ofnode. The iterator is set to the first edge of the node, if any. The directiondirhas to be respected by the iterator.- Specified by:
createEdgeIteratorin classRuntimeModel- Parameters:
node- the node whose edges are to be iterateddir- direction in which edges are traversed (seen fromnode)- Returns:
- an edge iterator
-