org.jrubyparser.ast
Class RestArgNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.ArgumentNode
          extended by 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
           
 
Constructor Summary
RestArgNode(SourcePosition position, ArgumentNode argNode)
           
RestArgNode(SourcePosition position, String name, int index)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
           
 int getIndex()
          Gets the index within the scope construct that actually holds the eval'd value of this local variable
 SourcePosition getNamePosition()
          The position of just the name part of the node.
 NodeType getNodeType()
           
 
Methods inherited from class org.jrubyparser.ast.ArgumentNode
getDeclaration, getDefinedScope, getDepth, getLexicalName, getLexicalNamePosition, getName, getOccurrences, isNameMatch, isSame, setName
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrubyparser.ast.ILocalVariable
getDeclaration, getDefinedScope, getOccurrences
 
Methods inherited from interface org.jrubyparser.ast.INameNode
getLexicalName, getLexicalNamePosition, getName, setName
 
Methods inherited from interface org.jrubyparser.ast.INameMatchable
isNameMatch
 

Field Detail

index

protected int index
Constructor Detail

RestArgNode

public RestArgNode(SourcePosition position,
                   String name,
                   int index)

RestArgNode

public RestArgNode(SourcePosition position,
                   ArgumentNode argNode)
Method Detail

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.