org.jruby.ast
Class MethodDefNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.MethodDefNode
All Implemented Interfaces:
INameNode, ISourcePositionHolder
Direct Known Subclasses:
DefnNode, DefsNode

public abstract class MethodDefNode
extends Node
implements INameNode


Field Summary
protected  ArgsNode argsNode
           
protected  Node bodyNode
           
protected  ArgumentNode nameNode
           
protected  StaticScope scope
           
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, nodeId
 
Constructor Summary
MethodDefNode(ISourcePosition position, ArgumentNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode, NodeType id)
           
 
Method Summary
 ArgsNode getArgsNode()
          Gets the argsNode.
 Node getBodyNode()
          Gets the body of this class.
 java.lang.String getName()
          Gets the name.
 ArgumentNode getNameNode()
          Gets the name's node.
 StaticScope getScope()
          Get the static scoping information.
 
Methods inherited from class org.jruby.ast.Node
accept, addComment, addComments, childNodes, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nameNode

protected final ArgumentNode nameNode

argsNode

protected final ArgsNode argsNode

scope

protected final StaticScope scope

bodyNode

protected final Node bodyNode
Constructor Detail

MethodDefNode

public MethodDefNode(ISourcePosition position,
                     ArgumentNode nameNode,
                     ArgsNode argsNode,
                     StaticScope scope,
                     Node bodyNode,
                     NodeType id)
Method Detail

getArgsNode

public ArgsNode getArgsNode()
Gets the argsNode.

Returns:
Returns a Node

getScope

public StaticScope getScope()
Get the static scoping information.

Returns:
the scoping info

getBodyNode

public Node getBodyNode()
Gets the body of this class.

Returns:
the contents

getNameNode

public ArgumentNode getNameNode()
Gets the name's node.

Returns:
Returns an ArgumentNode

getName

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

Specified by:
getName in interface INameNode
Returns:
Returns a String


Copyright © 2002-2007 JRuby Team. All Rights Reserved.