1 31 package org.jruby.ast; 32 33 import java.io.IOException ; 34 import java.util.List ; 35 36 import org.jruby.ast.visitor.NodeVisitor; 37 import org.jruby.evaluator.Instruction; 38 import org.jruby.lexer.yacc.ISourcePosition; 39 40 44 public class UndefNode extends Node { 45 static final long serialVersionUID = -8829084073375820727L; 46 47 private String name; 48 49 public UndefNode(ISourcePosition position, String name) { 50 super(position, NodeTypes.UNDEFNODE); 51 this.name = name.intern(); 52 } 53 54 private void readObject(java.io.ObjectInputStream in) throws IOException , ClassNotFoundException { 55 in.defaultReadObject(); 56 57 name = name.intern(); 59 } 60 61 65 public Instruction accept(NodeVisitor iVisitor) { 66 return iVisitor.visitUndefNode(this); 67 } 68 69 73 public String getName() { 74 return name; 75 } 76 77 public List childNodes() { 78 return EMPTY_LIST; 79 } 80 } 81 | Popular Tags |