public class DefsNode extends MethodDefNode implements INameNode
argsNode, bodyNode, nameNode, scope| Constructor and Description |
|---|
DefsNode(ISourcePosition position,
Node receiverNode,
ArgumentNode nameNode,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
String |
getName()
Gets the name of this method
|
NodeType |
getNodeType() |
Node |
getReceiverNode()
Gets the receiverNode.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
getArgsNode, getBodyNode, getNameNode, getScopeassign, createList, definition, getNodeName, getPosition, setPosition, toStringpublic DefsNode(ISourcePosition position, Node receiverNode, ArgumentNode nameNode, ArgsNode argsNode, StaticScope scope, Node bodyNode)
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
public Node getReceiverNode()
public String getName()
getName in interface INameNodegetName in class MethodDefNodepublic List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
Copyright © 2001-2013 JRuby. All Rights Reserved.