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