Package org.jruby.ast
Class NthRefNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NthRefNode
Represents a $number ($0..$9) variable.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.int
Gets the matchNumber.Methods 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
-
NthRefNode
public NthRefNode(int line, int matchNumber)
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getMatchNumber
public int getMatchNumber()Gets the matchNumber.- Returns:
- Returns a int
-
childNodes
- Specified by:
childNodes
in classNode
-