Package org.prism
Class Nodes.LambdaNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.LambdaNode
- Enclosing class:
- Nodes
Represents using a lambda literal (not the lambda method call).
->(value) { value * 2 }
^^^^^^^^^^^^^^^^^^^^^^^
-
Field Summary
FieldsFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionLambdaNode(int nodeId, int startOffset, int length, String[] locals, Nodes.Node parameters, Nodes.Node body) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) protected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
locals
-
parameters
-
body
-
-
Constructor Details
-
LambdaNode
public LambdaNode(int nodeId, int startOffset, int length, String[] locals, Nodes.Node parameters, Nodes.Node body)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-