org.jruby.ast
Class BlockPassNode

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

public class BlockPassNode
extends AbstractNode

Block passed explicitly as an argument in a method call. A block passing argument in a method call (last argument prefixed by an ampersand).

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

Constructor Summary
BlockPassNode(ISourcePosition position, INode bodyNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 IListNode getArgsNode()
          Gets the argsNode.
 INode getBodyNode()
          Gets the bodyNode.
 INode getIterNode()
          Gets the iterNode.
 void setArgsNode(IListNode argsNode)
          Sets the argsNode.
 void setIterNode(INode iterNode)
          Sets the iterNode.
 
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

BlockPassNode

public BlockPassNode(ISourcePosition position,
                     INode bodyNode)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getBodyNode

public INode getBodyNode()
Gets the bodyNode.

Returns:
Returns a INode

getIterNode

public INode getIterNode()
Gets the iterNode.

Returns:
Returns a INode

setIterNode

public void setIterNode(INode iterNode)
Sets the iterNode.

Parameters:
iterNode - The iterNode to set

getArgsNode

public IListNode getArgsNode()
Gets the argsNode.

Returns:
Returns a IListNode

setArgsNode

public void setArgsNode(IListNode argsNode)
Sets the argsNode.

Parameters:
argsNode - The argsNode to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.