1 32 package org.jruby.ast; 33 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 DefinedNode extends Node { 45 static final long serialVersionUID = -6942286690645861964L; 46 47 private final Node expressionNode; 48 49 public DefinedNode(ISourcePosition position, Node expressionNode) { 50 super(position, NodeTypes.DEFINEDNODE); 51 this.expressionNode = expressionNode; 52 } 53 54 58 public Instruction accept(NodeVisitor iVisitor) { 59 return iVisitor.visitDefinedNode(this); 60 } 61 62 66 public Node getExpressionNode() { 67 return expressionNode; 68 } 69 70 public List childNodes() { 71 return createList(expressionNode); 72 } 73 74 } 75 | Popular Tags |