1 2 12 package com.versant.core.ejb.query; 13 14 17 public class AndNode extends Node { 18 19 private Node argsList; 20 21 public AndNode(Node argsList) { 22 this.argsList = argsList; 23 } 24 25 public Node getArgsList() { 26 return argsList; 27 } 28 29 public Object arrive(NodeVisitor v, Object msg) { 30 return v.arriveAndNode(this, msg); 31 } 32 33 public String toStringImp() { 34 StringBuffer s = new StringBuffer (); 35 s.append(argsList); 36 if (argsList != null) { 37 for (Node e = argsList.getNext(); e != null; e = e.getNext()) { 38 s.append(" AND "); 39 s.append(e); 40 } 41 } 42 return s.toString(); 43 } 44 45 public void resolve(ResolveContext rc) { 46 resolve(argsList, rc); 47 } 48 49 } 50 51 | Popular Tags |