public class ArgsNode extends Node
Modifier and Type | Field and Description |
---|---|
protected ArgumentNode |
restArgNode |
containsVariableAssignment
Constructor and Description |
---|
ArgsNode(ISourcePosition position,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
BlockArgNode blockArgNode)
Construct a new ArgsNode with no keyword arguments.
|
ArgsNode(ISourcePosition position,
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.
|
List<Node> |
childNodes() |
int |
countKeywords() |
BlockArgNode |
getBlock()
Gets the explicit block argument of the parameter list (&block).
|
KeywordRestArgNode |
getKeyRest() |
int |
getKeywordCount() |
ListNode |
getKeywords() |
int |
getMaxArgumentsCount() |
NodeType |
getNodeType() |
ListNode |
getOptArgs()
Gets the optArgs.
|
int |
getOptionalArgsCount() |
ListNode |
getPost() |
int |
getPostCount() |
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.
|
ArgumentNode |
getRestArgNode()
Gets the restArgNode.
|
boolean |
hasKeyRest() |
boolean |
hasKwargs() |
boolean |
hasRestArg() |
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getNodeName, getPosition, isNil, needsDefinitionCheck, setPosition, toString, toString
protected final ArgumentNode restArgNode
public ArgsNode(ISourcePosition position, ListNode pre, ListNode optionalArguments, RestArgNode rest, ListNode post, BlockArgNode blockArgNode)
public ArgsNode(ISourcePosition position, ListNode pre, ListNode optionalArguments, RestArgNode rest, ListNode post, ListNode keywords, KeywordRestArgNode keyRest, BlockArgNode blockArgNode)
public NodeType getNodeType()
getNodeType
in class Node
public boolean hasKwargs()
public int countKeywords()
public boolean hasRestArg()
public <T> T accept(NodeVisitor<T> iVisitor)
public ListNode getPre()
public int getRequiredArgsCount()
public int getOptionalArgsCount()
public ListNode getPost()
public int getMaxArgumentsCount()
public ListNode getOptArgs()
public ArgumentNode getRestArgNode()
public BlockArgNode getBlock()
public int getPostCount()
public int getPreCount()
public ListNode getKeywords()
public KeywordRestArgNode getKeyRest()
public boolean hasKeyRest()
public List<Node> childNodes()
childNodes
in class Node
public int getKeywordCount()
public int getRequiredKeywordCount()
Copyright © 2001-2015 JRuby. All Rights Reserved.