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