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, getType
public 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)
TypeInferringNode
Node
, given the specified target type.
There will be a transaction open.
resolve
in class TypeInferringNode
T
- target node typesession
- parse sessiontype
- expected target typetarget
Copyright © 2022. All rights reserved.