org.jruby.ast
Class NthRefNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.NthRefNode
All Implemented Interfaces:
INode, java.io.Serializable

public class NthRefNode
extends AbstractNode

Represents a $number variable.

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
NthRefNode(ISourcePosition position, int matchNumber)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 int getMatchNumber()
          Gets the matchNumber.
 
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

NthRefNode

public NthRefNode(ISourcePosition position,
                  int matchNumber)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getMatchNumber

public int getMatchNumber()
Gets the matchNumber.

Returns:
Returns a int


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.