|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.xl.impl.base.CompiletimeModel
public abstract class CompiletimeModel
Constructor Summary | |
---|---|
CompiletimeModel(java.lang.String runtimeConstant)
|
Method Summary | |
---|---|
Type<?> |
getEdgeType()
Specifies the type of standard edges. |
Type<?> |
getEdgeTypeFor(Type<?> type)
Specifies the compile-time type of edges for a given type. |
Type<Graph.QState> |
getQueryStateType()
Returns the type of query states to be used for queries for this model. |
java.lang.String |
getRuntimeName()
Defines the name of the corresponding RuntimeModel . |
java.io.Serializable |
getStandardEdgeFor(int edgeType)
Returns a constant value representing a standard edge. |
CompiletimeModel.Property |
getWrapProperty(Type<?> wrapperType)
Returns the unwrapping property of a wrapper type. |
boolean |
needsWrapperFor(Type<?> type)
Determines whether a value of the given type has to be wrapped before it is added as a node to a Graph . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.grogra.xl.query.CompiletimeModel |
---|
getNodeType, getProducerType, getWrapperTypeFor |
Constructor Detail |
---|
public CompiletimeModel(java.lang.String runtimeConstant)
Method Detail |
---|
public Type<?> getEdgeType()
CompiletimeModel
CompiletimeModel.getStandardEdgeFor(int)
.
getEdgeType
in interface CompiletimeModel
public Type<?> getEdgeTypeFor(Type<?> type)
CompiletimeModel
type
should be cast before it is interpreted as
an edge expression.
getEdgeTypeFor
in interface CompiletimeModel
type
- the type of the expression
public Type<Graph.QState> getQueryStateType()
CompiletimeModel
getQueryStateType
in interface CompiletimeModel
public java.lang.String getRuntimeName()
CompiletimeModel
RuntimeModel
. This name
is used during run-time in invocations of
RuntimeModelFactory.modelForName(java.lang.String, java.lang.ClassLoader)
in order to obtain the RuntimeModel
suitable for the code that is compiled within this compile-time model.
getRuntimeName
in interface CompiletimeModel
public java.io.Serializable getStandardEdgeFor(int edgeType)
CompiletimeModel
edge
(EdgePattern.ANY_EDGE
,
EdgePattern.BRANCH_EDGE
,
EdgePattern.SUCCESSOR_EDGE
or
EdgePattern.REFINEMENT_EDGE
) for this
model. It is used as argument to constructor invocations of
EdgePattern
. Primitive values have to
be wrapped as usual.
getStandardEdgeFor
in interface CompiletimeModel
edgeType
- int
-value encoding a standard edge
public CompiletimeModel.Property getWrapProperty(Type<?> wrapperType)
CompiletimeModel
wrapperType
is the type of a wrapper. If there
is a property declared in this type which can be used to obtain
the wrapped argument, this property is returned, otherwise
null
.
getWrapProperty
in interface CompiletimeModel
wrapperType
- the type of a wrapper
public boolean needsWrapperFor(Type<?> type)
CompiletimeModel
Graph
.
needsWrapperFor
in interface CompiletimeModel
type
- a value type
true
iff a wrapper is needed for type
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |