abstract class RuntimeJastInterpreter.ResolvableAdapter extends RuntimeJastInterpreter.Lambda implements Resolvable
Resolvable
lambda expression stored as a JAST node,
using the RuntimeJastInterpreter
.interpreter, paramNodes, valueNode
Constructor and Description |
---|
ResolvableAdapter(RuntimeJastInterpreter interpreter,
Aast lambdaNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BaseDataType |
resolve()
Evaluate the lambda expression.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public ResolvableAdapter(RuntimeJastInterpreter interpreter, Aast lambdaNode)
interpreter
- The RuntimeJastInterpreter
that will handle interpretation of this
lambda expression. Must not be null
.lambdaNode
- A JAST node with JavaTokenTypes.LAMBDA
type and
no arguments (they will be ignored, anyway).public BaseDataType resolve()
Use the RuntimeJastInterpreter
set in constructor to evaluate the node. That
result is the value of the lambda expression.
resolve
in interface Resolvable