public class LambdaNode extends TypeInferringNode
Node representing a lambda function.| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaNode.Param |
| Constructor and Description |
|---|
LambdaNode(List<LambdaNode.Param> params,
Node body)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Node |
resolve(ParseSession session,
TypeToken<T> type)
|
evaluate, getTypepublic LambdaNode(List<LambdaNode.Param> params, Node body)
params - lambda parametersbody - lambda bodyIllegalArgumentException - if either parameter is nullpublic <T> Node resolve(ParseSession session, TypeToken<T> type)
TypeInferringNodeNode, given the specified target type.
There will be a transaction open.
resolve in class TypeInferringNodeT - target node typesession - parse sessiontype - expected target typetargetCopyright © 2017. All rights reserved.