1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.visitor.NodeVisitor; 36 import org.jruby.evaluator.Instruction; 37 import org.jruby.lexer.yacc.ISourcePosition; 38 39 43 public class NthRefNode extends Node { 44 static final long serialVersionUID = -3301605695065934063L; 45 46 private final int matchNumber; 47 48 public NthRefNode(ISourcePosition position, int matchNumber) { 49 super(position, NodeTypes.NTHREFNODE); 50 this.matchNumber = matchNumber; 51 } 52 53 57 public Instruction accept(NodeVisitor iVisitor) { 58 return iVisitor.visitNthRefNode(this); 59 } 60 61 65 public int getMatchNumber() { 66 return matchNumber; 67 } 68 69 public List childNodes() { 70 return EMPTY_LIST; 71 } 72 73 } 74 | Popular Tags |