public abstract class TypeInferringNode extends Object implements Node
Nodes that perform type inferrence and therefore require a target type
in order to be completely parsed.| Constructor and Description |
|---|
TypeInferringNode() |
| Modifier and Type | Method and Description |
|---|---|
Value |
evaluate(ParseSession session)
Evaluate this node.
|
Class<?> |
getType(ParseSession session)
Get the type of this node's value.
|
abstract <T> Node |
resolve(ParseSession session,
TypeToken<T> target)
|
public Value evaluate(ParseSession session)
The implementation in TypeInferringNode always throws an EvalException.
public Class<?> getType(ParseSession session)
Node
If the type is unknown, Object.class should be returned.
public abstract <T> Node resolve(ParseSession session, TypeToken<T> target)
Node, given the specified target type.
There will be a transaction open.
T - target node typesession - parse sessiontarget - expected target typetargetEvalException - if this instance cannot be resolved to targetEvalException - if resolution to target is ambiguousCopyright © 2017. All rights reserved.