Package org.prism
Class Nodes.ArgumentsNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ArgumentsNode
- Enclosing class:
- Nodes
Represents a set of arguments to a method or a keyword.
return foo, bar, baz
^^^^^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.Node[]The list of arguments, if present.final shortFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionArgumentsNode(int nodeId, int startOffset, int length, short flags, Nodes.Node[] arguments) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) booleanbooleanbooleanbooleanbooleanprotected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
flags
public final short flags -
arguments
The list of arguments, if present. These can be any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). foo(bar, baz) ^^^^^^^^
-
-
Constructor Details
-
ArgumentsNode
-
-
Method Details
-
isContainsForwarding
public boolean isContainsForwarding() -
isContainsKeywords
public boolean isContainsKeywords() -
isContainsKeywordSplat
public boolean isContainsKeywordSplat() -
isContainsSplat
public boolean isContainsSplat() -
isContainsMultipleSplats
public boolean isContainsMultipleSplats() -
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-