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