|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jruby.ast.AbstractNode
org.jruby.ast.ArgsNode
arguments for a function. this is used both in the function definition and in actual function calls
| Constructor Summary | |
ArgsNode(ISourcePosition iPosition,
int argsCount,
IListNode optArgs,
int restArg,
BlockArgNode blockArgNode)
|
|
| Method Summary | |
void |
accept(INodeVisitor iVisitor)
Accept for the visitor pattern. |
int |
getArgsCount()
Gets the argsCount. |
BlockArgNode |
getBlockArgNode()
Gets the blockArgNode. |
IListNode |
getOptArgs()
Gets the optArgs. |
int |
getRestArg()
Gets the restArg. |
| Methods inherited from class org.jruby.ast.AbstractNode |
getPosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArgsNode(ISourcePosition iPosition,
int argsCount,
IListNode optArgs,
int restArg,
BlockArgNode blockArgNode)
optArgs - Node describing the optional arguments
This Block will contain assignments to locals (LAsgnNode)restArg - index of the rest argument in the local table
(the array argument prefixed by a * which collects
all additional params)
or -1 if there is none.argsCount - number of regular argumentsblockArgNode - An optional block argument (&arg).| Method Detail |
public void accept(INodeVisitor iVisitor)
iVisitor - the visitorpublic int getArgsCount()
public IListNode getOptArgs()
public int getRestArg()
public BlockArgNode getBlockArgNode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||