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 blockfinal Nodes.ParametersNodeRepresents the parameters of the blockFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionBlockParametersNode(int startOffset, int length, Nodes.ParametersNode parameters, Nodes.BlockLocalVariableNode[] locals) -
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
-
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 startOffset, int length, Nodes.ParametersNode parameters, Nodes.BlockLocalVariableNode[] locals)
-
-
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
-