public class BlockPassNode extends Node
| Modifier and Type | Field and Description |
|---|---|
private Node |
argsNode
Used by the arg_blk_pass and new_call, new_fcall and new_super
methods in ParserSupport to temporary save the args node.
|
private Node |
bodyNode |
EMPTY_LIST| Constructor and Description |
|---|
BlockPassNode(ISourcePosition position,
Node bodyNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
Node |
getArgsNode()
Gets the argsNode.
|
Node |
getBodyNode()
Gets the bodyNode.
|
NodeType |
getNodeType() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block block) |
void |
setArgsNode(Node argsNode)
Sets the argsNode.
|
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node bodyNode
private Node argsNode
public BlockPassNode(ISourcePosition position, Node bodyNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getArgsNode()
public void setArgsNode(Node argsNode)
argsNode - The argsNode to setpublic java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block block)