|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.xl.impl.base.RuntimeModel de.grogra.xl.impl.dom.RuntimeModel
public class RuntimeModel
Field Summary | |
---|---|
static int |
ATTRIBUTE
|
static int |
SIBLING
|
Fields inherited from class de.grogra.xl.impl.base.RuntimeModel |
---|
BRANCH_EDGE, branchIn, CONTAINMENT_EDGE, CONTAINMENT_END_EDGE, copyIn, copyOut, MARK_EDGE, MIN_NORMAL_BIT_INDEX, MIN_USER_EDGE, REFINEMENT_EDGE, SPECIAL_MASK, SUCCESSOR_EDGE |
Constructor Summary | |
---|---|
RuntimeModel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class de.grogra.xl.impl.base.RuntimeModel |
---|
currentGraph, edgeBitsIntersection, edgeBitsUnion, getStandardEdgeFor, initialize, isNode, setCurrentGraph, testEdgeBits, unwrapBoolean, unwrapByte, unwrapChar, unwrapDouble, unwrapFloat, unwrapInt, unwrapLong, unwrapShort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ATTRIBUTE
public static final int SIBLING
Constructor Detail |
---|
public RuntimeModel()
Method Detail |
---|
public void addEdgeBits(java.lang.Object source, java.lang.Object target, int bits)
RuntimeModel
source
node
to a target
node.
addEdgeBits
in class RuntimeModel
source
- 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)
RuntimeModel
node
. 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 RuntimeModel
node
- 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)
RuntimeModel
source
node and a
target
node. If there is no edge at all, 0 is returned.
getEdgeBits
in class RuntimeModel
source
- the source node of the edgetarget
- the target node of the edge
public java.lang.Class getNodeType()
RuntimeModel
CompiletimeModel.getNodeType()
for the corresponding CompiletimeModel
implementation.
getNodeType
in class RuntimeModel
public boolean isWrapperFor(java.lang.Object object, Type type)
RuntimeModel
isWrapperFor
in interface RuntimeModel
isWrapperFor
in class RuntimeModel
object
- the potential wrapper to be testedtype
- the value type
true
iff object
is a wrapper for values of type type
public java.lang.Object unwrapObject(java.lang.Object wrapper)
RuntimeModel
unwrapObject
in interface RuntimeModel
unwrapObject
in class RuntimeModel
wrapper
- the wrapper
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |