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
An explicit block argument (&my_block) in parameter list.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionBlockArgNode
(int line, int count, RubySymbol name) BlockArgNode
(ArgumentNode argNode) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.int
getCount()
Gets the count.getName()
Get the name of this block argumentMethods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
BlockArgNode
-
BlockArgNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in 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:
childNodes
in classNode
-