org.jrubyparser.ast
Class RestArgNode
java.lang.Object
org.jrubyparser.ast.Node
org.jrubyparser.ast.ArgumentNode
org.jrubyparser.ast.RestArgNode
- All Implemented Interfaces:
- ILocalVariable, INameMatchable, INameNode, IParameter, ISourcePositionHolder
- Direct Known Subclasses:
- UnnamedRestArgNode
public class RestArgNode
- extends ArgumentNode
- implements IParameter
|
Field Summary |
protected int |
index
|
| Methods inherited from class org.jrubyparser.ast.Node |
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString |
index
protected int index
RestArgNode
public RestArgNode(SourcePosition position,
String name,
int index)
RestArgNode
public RestArgNode(SourcePosition position,
ArgumentNode argNode)
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType in class ArgumentNode
- Returns:
- the nodeId
accept
public Object accept(NodeVisitor iVisitor)
- Overrides:
accept in class ArgumentNode
getIndex
public int getIndex()
- Description copied from class:
ArgumentNode
- Gets the index within the scope construct that actually holds the eval'd value
of this local variable
- Overrides:
getIndex in class ArgumentNode
- Returns:
- Returns an int offset into storage structure
getNamePosition
public SourcePosition getNamePosition()
- Description copied from interface:
INameNode
- The position of just the name part of the node.
- Specified by:
getNamePosition in interface INameNode- Overrides:
getNamePosition in class ArgumentNode
Copyright © 2013. All Rights Reserved.