1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.types.INameNode; 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 NilNode extends Node implements INameNode { 45 static final long serialVersionUID = -8702073984472296708L; 46 47 public NilNode(ISourcePosition position) { 48 super(position, NodeTypes.NILNODE); 49 } 50 51 55 public Instruction accept(NodeVisitor iVisitor) { 56 return iVisitor.visitNilNode(this); 57 } 58 59 62 public String getName() { 63 return "nil"; 64 } 65 66 public List childNodes() { 67 return EMPTY_LIST; 68 } 69 70 } 71 | Popular Tags |