org.jruby.ast
Class CallNode

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

public final class CallNode
extends AbstractNode

A method or operator call.

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

Constructor Summary
CallNode(ISourcePosition position, INode receiverNode, java.lang.String name, IListNode argsNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 IListNode getArgsNode()
          Gets the argsNode.
 java.lang.String getName()
          Gets the name.
 INode getReceiverNode()
          Gets the receiverNode.
 
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

CallNode

public CallNode(ISourcePosition position,
                INode receiverNode,
                java.lang.String name,
                IListNode argsNode)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getArgsNode

public IListNode getArgsNode()
Gets the argsNode. argsNode representing the method's arguments' value for this call.

Returns:
argsNode

getName

public java.lang.String getName()
Gets the name. name is the name of the method called

Returns:
name

getReceiverNode

public INode getReceiverNode()
Gets the receiverNode. receiverNode is the object on which the method is being called

Returns:
receiverNode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.