org.jruby.ast
Class BlockArgNode

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

public class BlockArgNode
extends AbstractNode

a block argument. A block argument, when present in a function declaration is the last argument and it is preceded by an ampersand:
def tutu(a, b, &c) in this example c is a BlockArgNode

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

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

BlockArgNode

public BlockArgNode(ISourcePosition position,
                    int count)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getCount

public int getCount()
Gets the count.

Returns:
Returns a int


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.