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 55 public class BackRefNode extends Node { 56 static final long serialVersionUID = 5321267679438359590L; 57 58 61 private final char type; 62 63 public BackRefNode(ISourcePosition position, char type) { 64 super(position, NodeTypes.BACKREFNODE); 65 this.type = type; 66 } 67 68 72 public Instruction accept(NodeVisitor iVisitor) { 73 return iVisitor.visitBackRefNode(this); 74 } 75 76 81 public char getType() { 82 return type; 83 } 84 85 public List childNodes() { 86 return EMPTY_LIST; 87 } 88 89 } 90 | Popular Tags |