de.grogra.rgg.model
public class Compiletime extends CompiletimeModel
| Constructor and Description |
|---|
Compiletime() |
Compiletime(java.lang.String runtimeConstant) |
| Modifier and Type | Method and Description |
|---|---|
Type<Node> |
getNodeType()
Specifies the base type of nodes of this model.
|
Type<? extends Producer> |
getProducerType()
Returns the type of producers for right-hand sides
of rules for this model.
|
Type<?> |
getWrapperTypeFor(Type<?> type)
Return the type of wrappers for values of the given type.
|
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. |
getEdgeType, getEdgeTypeFor, getQueryStateType, getRuntimeName, getStandardEdgeForpublic Compiletime()
public Compiletime(java.lang.String runtimeConstant)
public Type<Node> getNodeType()
CompiletimeModelpublic Type<? extends Producer> getProducerType()
CompiletimeModelpublic Type<?> getWrapperTypeFor(Type<?> type)
CompiletimeModelCompiletimeModel.needsWrapperFor(de.grogra.reflect.Type>) returns true.type - a value typepublic CompiletimeModel.Property getWrapProperty(Type<?> wrapperType)
CompiletimeModelwrapperType 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 CompiletimeModelgetWrapProperty in class CompiletimeModelwrapperType - the type of a wrapperpublic boolean needsWrapperFor(Type<?> type)
CompiletimeModelGraph.needsWrapperFor in interface CompiletimeModelneedsWrapperFor in class CompiletimeModeltype - a value typetrue iff a wrapper is needed for type