1 // $Id: CQLAndNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
3 package org.z3950.zing.cql;
7 * Represents an AND node in a CQL parse-tree.
9 * @version $Id: CQLAndNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
11 public class CQLAndNode extends CQLBooleanNode {
13 * Creates a new AND node with the specified left- and right-hand
14 * sides and modifiers.
16 public CQLAndNode(CQLNode left, CQLNode right, ModifierSet ms) {
17 super(left, right, ms);
20 // ### Too much code duplication here with OR and NOT
23 byte[] op = new byte[5];
24 putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
26 putTag(CONTEXT, 0, PRIMITIVE, op, 3); // and