org.jruby.ast
Class MethodDefNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.MethodDefNode
- All Implemented Interfaces:
- INameNode, ISourcePositionHolder
- Direct Known Subclasses:
- DefnNode, DefsNode
public abstract class MethodDefNode
- extends Node
- implements INameNode
Methods inherited from class org.jruby.ast.Node |
accept, addComment, addComments, assign, childNodes, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, interpret, isInvisible, setPosition, toString, when |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nameNode
protected final ArgumentNode nameNode
argsNode
protected final ArgsNode argsNode
scope
protected final StaticScope scope
bodyNode
protected final Node bodyNode
MethodDefNode
public MethodDefNode(ISourcePosition position,
ArgumentNode nameNode,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode,
NodeType id)
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.