1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.visitor.NodeVisitor; 36 import org.jruby.evaluator.Instruction; 37 import org.jruby.lexer.yacc.ISourcePosition; 38 39 43 public class NotNode extends Node { 44 static final long serialVersionUID = -9044821606260233871L; 45 46 private final Node conditionNode; 47 48 public NotNode(ISourcePosition position, Node conditionNode) { 49 super(position, NodeTypes.NOTNODE); 50 this.conditionNode = conditionNode; 51 } 52 53 57 public Instruction accept(NodeVisitor iVisitor) { 58 return iVisitor.visitNotNode(this); 59 } 60 61 65 public Node getConditionNode() { 66 return conditionNode; 67 } 68 69 public List childNodes() { 70 return createList(conditionNode); 71 } 72 73 } 74 | Popular Tags |