org.jruby.ast
Class DefsNode

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

public class DefsNode
extends AbstractNode

Represents a singleton method definition.

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

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

DefsNode

public DefsNode(ISourcePosition position,
                INode receiverNode,
                java.lang.String name,
                INode argsNode,
                ScopeNode bodyNode)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getArgsNode

public INode getArgsNode()
Gets the argsNode.

Returns:
Returns a INode

getBodyNode

public ScopeNode getBodyNode()
Gets the bodyNode.

Returns:
Returns a ScopeNode

getName

public java.lang.String getName()
Gets the name.

Returns:
Returns a String

getReceiverNode

public INode getReceiverNode()
Gets the receiverNode.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.