Package org.jruby.ast
Class BlockArgNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.BlockArgNode
- All Implemented Interfaces:
INameNode
An explicit block argument (&my_block) in parameter list.
-
Field Summary
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, EMPTY_LIST, newline -
Constructor Summary
ConstructorsConstructorDescriptionBlockArgNode(int line, int count, RubySymbol name) BlockArgNode(ArgumentNode argNode) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(NodeVisitor<T> iVisitor) Accept for the visitor pattern.intgetCount()Gets the count.getName()Get the name of this block argumentMethods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
count
private final int count -
name
-
-
Constructor Details
-
BlockArgNode
-
BlockArgNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getCount
public int getCount()Gets the count.- Returns:
- Returns a int
-
getName
Get the name of this block argument -
childNodes
- Specified by:
childNodesin classNode
-