org.jruby.ast
Class MethodDefNode

java.lang.Object
  extended byorg.jruby.ast.Node
      extended byorg.jruby.ast.MethodDefNode
All Implemented Interfaces:
INameNode, InstructionContext, ISourcePositionHolder, java.io.Serializable
Direct Known Subclasses:
DefnNode, DefsNode

public abstract class MethodDefNode
extends Node
implements INameNode

See Also:
Serialized Form

Field Summary
protected  ArgsNode argsNode
           
protected  Node bodyNode
           
protected  ArgumentNode nameNode
           
protected  StaticScope scope
           
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
MethodDefNode(ISourcePosition position, ArgumentNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode, int 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, createList, createList, 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,
                     int 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.