public class ArgsNode extends Node
| Modifier and Type | Field and Description |
|---|---|
protected RestArgNode |
restArgNode |
containsVariableAssignment, newline| Constructor and Description |
|---|
ArgsNode(int line,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
BlockArgNode blockArgNode)
Construct a new ArgsNode with no keyword arguments.
|
ArgsNode(int line,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
ListNode keywords,
KeywordRestArgNode keyRest,
BlockArgNode blockArgNode)
Construct a new ArgsNode with keyword arguments.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
Node[] |
getArgs() |
BlockArgNode |
getBlock()
Gets the explicit block argument of the parameter list (&block).
|
KeywordRestArgNode |
getKeyRest() |
int |
getKeywordCount() |
ListNode |
getKeywords() |
int |
getKeywordsIndex() |
NodeType |
getNodeType() |
int |
getOptArgIndex() |
ListNode |
getOptArgs()
Gets the optArgs.
|
int |
getOptionalArgsCount() |
ListNode |
getPost() |
int |
getPostCount() |
int |
getPostIndex() |
ListNode |
getPre()
Gets the required arguments at the beginning of the argument definition
|
int |
getPreCount() |
int |
getRequiredArgsCount() |
int |
getRequiredKeywordCount()
How many of the keywords listed happen to be required keyword args.
|
RestArgNode |
getRestArgNode()
Gets the restArgNode.
|
boolean |
hasKeyRest() |
boolean |
hasKwargs() |
boolean |
hasRestArg() |
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewlineprotected final RestArgNode restArgNode
public ArgsNode(int line,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
BlockArgNode blockArgNode)
public ArgsNode(int line,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
ListNode keywords,
KeywordRestArgNode keyRest,
BlockArgNode blockArgNode)
public Node[] getArgs()
public int getOptArgIndex()
public int getPostIndex()
public int getKeywordsIndex()
public NodeType getNodeType()
getNodeType in class Nodepublic boolean hasKwargs()
public <T> T accept(NodeVisitor<T> iVisitor)
public ListNode getPre()
public int getRequiredArgsCount()
public int getOptionalArgsCount()
public ListNode getPost()
public ListNode getOptArgs()
public RestArgNode getRestArgNode()
public boolean hasRestArg()
public BlockArgNode getBlock()
public int getPostCount()
public int getPreCount()
public ListNode getKeywords()
public KeywordRestArgNode getKeyRest()
public boolean hasKeyRest()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic int getKeywordCount()
public int getRequiredKeywordCount()
Copyright © 2001-2022 JRuby. All Rights Reserved.