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 FalseNode extends Node implements INameNode { 45 static final long serialVersionUID = 8153681841075601779L; 46 47 48 public FalseNode(ISourcePosition position) { 49 super(position, NodeTypes.FALSENODE); 50 } 51 52 56 public Instruction accept(NodeVisitor iVisitor) { 57 return iVisitor.visitFalseNode(this); 58 } 59 60 63 public String getName() { 64 return "false"; 65 } 66 67 public List childNodes() { 68 return EMPTY_LIST; 69 } 70 } 71 | Popular Tags |