Remove CVS expansions
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLAndNode.java
1
2 package org.z3950.zing.cql;
3
4
5 /**
6  * Represents an AND node in a CQL parse-tree.
7  *
8  */
9 public class CQLAndNode extends CQLBooleanNode {
10     /**
11      * Creates a new AND node with the specified left- and right-hand
12      * sides and modifiers.
13      */
14     public CQLAndNode(CQLNode left, CQLNode right, ModifierSet ms) {
15         super(left, right, ms);
16     }
17
18     // ### Too much code duplication here with OR and NOT
19     @Override
20     byte[] opType1() {
21         byte[] op = new byte[5];
22         putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
23         putLen(2, op, 2);
24         putTag(CONTEXT, 0, PRIMITIVE, op, 3); // and
25         putLen(0, op, 4);
26         return op;
27     }
28 }