1 2 12 package com.versant.core.ejb.query; 13 14 17 public class NullCompNode extends Node { 18 19 private Node arg; 20 private boolean not; 21 22 public NullCompNode(Node arg, boolean not) { 23 this.arg = arg; 24 this.not = not; 25 } 26 27 public Node getArg() { 28 return arg; 29 } 30 31 public boolean isNot() { 32 return not; 33 } 34 35 public Object arrive(NodeVisitor v, Object msg) { 36 return v.arriveNullCompNode(this, msg); 37 } 38 39 public String toStringImp() { 40 StringBuffer s = new StringBuffer (); 41 s.append(arg); 42 s.append(not ? " IS NOT NULL" : " IS NULL"); 43 return s.toString(); 44 } 45 46 public void resolve(ResolveContext rc) { 47 arg.resolve(rc); 48 } 49 50 } 51 52 | Popular Tags |