1 23 24 25 26 package org.apache.slide.search.basic.expression; 27 import java.util.Collection ; 28 29 import org.apache.slide.search.InvalidQueryException; 30 import org.apache.slide.search.basic.IBasicResultSet; 31 import org.apache.slide.search.basic.Literals; 32 import org.jdom.Element; 33 34 39 public class AndExpression extends MergeExpression { 40 41 42 48 public AndExpression (Element e, Collection expressionsToMerge) throws InvalidQueryException { 49 super (e, expressionsToMerge); 50 } 51 52 protected void merge (IBasicResultSet theOtherResultSet) { 53 resultSet.retainAll (theOtherResultSet); 54 } 55 56 57 62 public String toString () { 63 return super.toString (Literals.AND); 64 } 65 66 } 67 68 | Popular Tags |