Top Description Fields Constructors Methods
org.jruby.ast

public Class BlockArgNode

extends Node
implements INameNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.types.INameNode
Known Direct Subclasses
org.jruby.ast.ForwardingBlockArgNode
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor

An explicit block argument (&my_block) in parameter list.

Field Summary

Modifier and TypeField and Description
private final int
private final RubySymbol
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
BlockArgNode(int line, int count, RubySymbol name)

public

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 int

Returns:

Returns a int
getCount
()

Gets the count.

public RubySymbol

Returns:

it's name
getName
()

Implements org.jruby.ast.types.INameNode.getName.

Get the name of this block argument

public NodeType
Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

countback to summary
private final int count
nameback to summary
private final RubySymbol name

Constructor Detail

BlockArgNodeback to summary
public BlockArgNode(int line, int count, RubySymbol name)
BlockArgNodeback to summary
public BlockArgNode(ArgumentNode argNode)

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.

getCountback to summary
public int getCount()

Gets the count.

Returns:int

Returns a int

getNameback to summary
public RubySymbol getName()

Implements org.jruby.ast.types.INameNode.getName.

Get the name of this block argument

Returns:RubySymbol

it's name

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId