-// $Id: CQLAndNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+// $Id: CQLAndNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
* Represents an AND node in a CQL parse-tree ...
* ###
*
- * @version $Id: CQLAndNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+ * @version $Id: CQLAndNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
*/
-class CQLAndNode extends CQLBooleanNode {
+public class CQLAndNode extends CQLBooleanNode {
public CQLAndNode(CQLNode left, CQLNode right) {
this.left = left;
this.right = right;
-// $Id: CQLNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+// $Id: CQLNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
* Represents a node in a CQL parse-tree ...
* ###
*
- * @version $Id: CQLNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+ * @version $Id: CQLNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
*/
-abstract class CQLNode {
+public abstract class CQLNode {
abstract String toXCQL(int level);
abstract String toCQL();
return x;
}
+ /*
// Test harness
public static void main (String[] args) {
CQLNode n1 = new CQLTermNode("dc.author", "=", "kernighan");
CQLNode root = new CQLAndNode(n1, n2);
System.out.println(root.toXCQL(3));
}
+ */
}
-// $Id: CQLNotNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+// $Id: CQLNotNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
* Represents a NOT node in a CQL parse-tree ...
* ###
*
- * @version $Id: CQLNotNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+ * @version $Id: CQLNotNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
*/
-class CQLNotNode extends CQLBooleanNode {
+public class CQLNotNode extends CQLBooleanNode {
public CQLNotNode(CQLNode left, CQLNode right) {
this.left = left;
this.right = right;
-// $Id: CQLOrNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+// $Id: CQLOrNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
* Represents an OR node in a CQL parse-tree ...
* ###
*
- * @version $Id: CQLOrNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $
+ * @version $Id: CQLOrNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
*/
-class CQLOrNode extends CQLBooleanNode {
+public class CQLOrNode extends CQLBooleanNode {
public CQLOrNode(CQLNode left, CQLNode right) {
this.left = left;
this.right = right;
-// $Id: CQLParser.java,v 1.4 2002-10-25 07:38:16 mike Exp $
+// $Id: CQLParser.java,v 1.5 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
import java.util.Properties;
* Compiles a CQL string into a parse tree ...
* ###
*
- * @version $Id: CQLParser.java,v 1.4 2002-10-25 07:38:16 mike Exp $
+ * @version $Id: CQLParser.java,v 1.5 2002-10-25 16:01:26 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
-class CQLParser {
+public class CQLParser {
private String cql;
private StreamTokenizer st;
-// $Id: CQLTermNode.java,v 1.1 2002-10-25 07:38:17 mike Exp $
+// $Id: CQLTermNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
package org.z3950.zing.cql;
* Represents a terminal node in a CQL parse-tree ...
* ###
*
- * @version $Id: CQLTermNode.java,v 1.1 2002-10-25 07:38:17 mike Exp $
+ * @version $Id: CQLTermNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $
*/
-class CQLTermNode extends CQLNode {
+public class CQLTermNode extends CQLNode {
private String qualifier;
private String relation;
private String value;