Record position in parse exception
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLBooleanNode.java
index d5a81e8..06a9bc9 100644 (file)
@@ -16,7 +16,7 @@ public abstract class CQLBooleanNode extends CQLNode {
     /**
      * The root of a parse-tree representing the left-hand side.
      */
-    public CQLNode getLeft() {
+    public CQLNode getLeftOperand() {
         return left;
     }
 
@@ -25,11 +25,12 @@ public abstract class CQLBooleanNode extends CQLNode {
     /**
      * The root of a parse-tree representing the right-hand side.
      */
-    public CQLNode getRight() {
+    public CQLNode getRightOperand() {
         return right;
     }
 
     ModifierSet ms;
+
     /**
      * The set of modifiers that are applied to this boolean.
      */
@@ -48,7 +49,7 @@ public abstract class CQLBooleanNode extends CQLNode {
         List<CQLPrefix> prefixes, List<ModifierSet> sortkeys) {
        b.indent(level).append("<triple>\n");
         renderPrefixes(b, level + 1, prefixes);
-        ms.toXCQLInternal(b, level + 1, "boolean");
+        ms.toXCQLInternal(b, level + 1, "boolean", "value");
         b.indent(level + 1).append("<leftOperand>\n");
         left.toXCQLInternal(b, level + 2);
         b.indent(level + 1).append("</leftOperand>\n");