-// $Id: CQLParser.java,v 1.25 2007-06-26 16:43:41 mike Exp $
+// $Id: CQLParser.java,v 1.26 2007-06-27 22:16:23 mike Exp $
package org.z3950.zing.cql;
import java.io.IOException;
/**
* Compiles CQL strings into parse trees of CQLNode subtypes.
*
- * @version $Id: CQLParser.java,v 1.25 2007-06-26 16:43:41 mike Exp $
+ * @version $Id: CQLParser.java,v 1.26 2007-06-27 22:16:23 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
if (!isProxRelation())
throw new CQLParseException("expected proximity relation, got " +
lexer.render());
- node.addModifier("relation", lexer.render(lexer.ttype, false));
+ node.addModifier("relation", null, lexer.render(lexer.ttype, false));
match(lexer.ttype);
debug("gPR matched " + lexer.render(lexer.ttype, false));
}
if (lexer.ttype != lexer.TT_NUMBER)
throw new CQLParseException("expected proximity distance, got " +
lexer.render());
- node.addModifier("distance", lexer.render(lexer.ttype, false));
+ node.addModifier("distance", null, lexer.render(lexer.ttype, false));
match(lexer.ttype);
debug("gPD matched " + lexer.render(lexer.ttype, false));
}
lexer.ttype != lexer.TT_ELEMENT)
throw new CQLParseException("expected proximity unit, got " +
lexer.render());
- node.addModifier("unit", lexer.render());
+ node.addModifier("unit", null, lexer.render());
match(lexer.ttype);
}
lexer.ttype != lexer.TT_UNORDERED)
throw new CQLParseException("expected proximity ordering, got " +
lexer.render());
- node.addModifier("ordering", lexer.render());
+ node.addModifier("ordering", null, lexer.render());
match(lexer.ttype);
}
-// $Id: CQLRelation.java,v 1.13 2007-06-27 17:18:00 mike Exp $
+// $Id: CQLRelation.java,v 1.14 2007-06-27 22:14:46 mike Exp $
package org.z3950.zing.cql;
import java.util.Vector;
/**
* Represents a relation between a CQL qualifier and term.
*
- * @version $Id: CQLRelation.java,v 1.13 2007-06-27 17:18:00 mike Exp $
+ * @version $Id: CQLRelation.java,v 1.14 2007-06-27 22:14:46 mike Exp $
*/
public class CQLRelation extends CQLNode {
ModifierSet ms;
* for the text relations.
*/
public void addModifier(String modifier) {
- ms.addModifier(modifier, null);
+ ms.addModifier(modifier, null, null);
}
/**