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