Package org.jruby.ast

Class BlockPassNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.BlockPassNode

public class BlockPassNode extends Node
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.
  • Constructor Details

    • BlockPassNode

      public BlockPassNode(int line, Node bodyNode)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Specified by:
      getNodeType in class Node
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Specified by:
      accept in class Node
      Parameters:
      iVisitor - the visitor
    • getBodyNode

      public Node getBodyNode()
      Gets the bodyNode.
      Returns:
      Returns a Node
    • getArgsNode

      public Node getArgsNode()
      Gets the argsNode.
      Returns:
      Returns a IListNode
    • setArgsNode

      public void setArgsNode(Node argsNode)
      Sets the argsNode.
      Parameters:
      argsNode - The argsNode to set
    • childNodes

      public List<Node> childNodes()
      Specified by:
      childNodes in class Node