2 package org.z3950.zing.cql;
6 * Represents an AND node in a CQL parse-tree.
9 public class CQLAndNode extends CQLBooleanNode {
11 * Creates a new AND node with the specified left- and right-hand
12 * sides and modifiers.
14 public CQLAndNode(CQLNode left, CQLNode right, ModifierSet ms) {
15 super(left, right, ms);
19 public void traverse(CQLNodeVisitor visitor) {
20 visitor.onAndNode(this);
21 super.traverse(visitor);
25 // ### Too much code duplication here with OR and NOT
28 byte[] op = new byte[5];
29 putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
31 putTag(CONTEXT, 0, PRIMITIVE, op, 3); // and