Package org.prism
Class Nodes.BlockParametersNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.BlockParametersNode
- Enclosing class:
- Nodes
Represents a block's parameters declaration. -> (a, b = 1; local) { } ^^^^^^^^^^^^^^^^^ foo do |a, b = 1; local| ^^^^^^^^^^^^^^^^^ end
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.BlockLocalVariableNode[]
Represents the local variables of the block.final Nodes.ParametersNode
Represents the parameters of the block.Fields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset
-
Constructor Summary
ConstructorsConstructorDescriptionBlockParametersNode
(int nodeId, int startOffset, int length, Nodes.ParametersNode parameters, Nodes.BlockLocalVariableNode[] locals) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor) protected String
<T> void
visitChildNodes
(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
parameters
Represents the parameters of the block. -> (a, b = 1; local) { } ^^^^^^^^ foo do |a, b = 1; local| ^^^^^^^^ end
-
locals
Represents the local variables of the block. -> (a, b = 1; local) { } ^^^^^ foo do |a, b = 1; local| ^^^^^ end
-
-
Constructor Details
-
BlockParametersNode
public BlockParametersNode(int nodeId, int startOffset, int length, Nodes.ParametersNode parameters, Nodes.BlockLocalVariableNode[] locals)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodes
in classNodes.Node
-
childNodes
- Specified by:
childNodes
in classNodes.Node
-
accept
- Specified by:
accept
in classNodes.Node
-
toString
- Specified by:
toString
in classNodes.Node
-