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