Package org.jruby.ast

Class BlockArgNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.BlockArgNode
All Implemented Interfaces:
INameNode
Direct Known Subclasses:
ForwardingBlockArgNode

public class BlockArgNode extends Node implements INameNode
An explicit block argument (&my_block) in parameter list.
  • Constructor Details

    • BlockArgNode

      public BlockArgNode(int line, int count, RubySymbol name)
    • BlockArgNode

      public BlockArgNode(ArgumentNode argNode)
  • 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
    • getCount

      public int getCount()
      Gets the count.
      Returns:
      Returns a int
    • getName

      public RubySymbol getName()
      Get the name of this block argument
      Specified by:
      getName in interface INameNode
      Returns:
      it's name
    • childNodes

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