Top Description Fields Constructors Methods
org.jruby.ast

public Class BlockPassNode

extends Node
Class Inheritance
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor

Explicit block argument (on caller side): foobar(1, 2, &foo) foobar(1, 2, &lhs_which_returns_something_block/proc_like) bodyNode is any expression which can return something which is ultimately coercible to a proc.

Field Summary

Modifier and TypeField 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 final Node
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
BlockPassNode(int line, Node bodyNode)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

Returns a IListNode
getArgsNode
()

Gets the argsNode.

public Node

Returns:

Returns a Node
getBodyNode
()

Gets the bodyNode.

public NodeType
public void
setArgsNode(Node
The argsNode to set
argsNode
)

Sets the argsNode.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

argsNodeback to summary
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. This should not be used directly by compiler or interpreter.

bodyNodeback to summary
private final Node bodyNode

Constructor Detail

BlockPassNodeback to summary
public BlockPassNode(int line, Node bodyNode)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getArgsNodeback to summary
public Node getArgsNode()

Gets the argsNode.

Returns:Node

Returns a IListNode

getBodyNodeback to summary
public Node getBodyNode()

Gets the bodyNode.

Returns:Node

Returns a Node

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

setArgsNodeback to summary
public void setArgsNode(Node argsNode)

Sets the argsNode.

Parameters
argsNode:Node

The argsNode to set