Package org.jruby.ast

Class NthRefNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NthRefNode

public class NthRefNode extends Node
Represents a $number ($0..$9) variable.
  • Constructor Details

    • NthRefNode

      public NthRefNode(int line, int matchNumber)
  • 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
    • getMatchNumber

      public int getMatchNumber()
      Gets the matchNumber.
      Returns:
      Returns a int
    • childNodes

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