From: Mike Taylor Date: Wed, 19 May 2010 22:41:25 +0000 (+0100) Subject: Rename method isRelation() to isSymbolicRelation() X-Git-Tag: v1.5~17 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=7d8ec6eaa2b799a2c466605af660e381644c48cc;hp=83ec0e33533dc85b30897f2f38f3a30286937c98;p=cql-java-moved-to-github.git Rename method isRelation() to isSymbolicRelation() --- diff --git a/src/main/java/org/z3950/zing/cql/CQLParser.java b/src/main/java/org/z3950/zing/cql/CQLParser.java index 58e0326..7580959 100644 --- a/src/main/java/org/z3950/zing/cql/CQLParser.java +++ b/src/main/java/org/z3950/zing/cql/CQLParser.java @@ -159,7 +159,7 @@ public class CQLParser { + "got " + lexer.render()); String type = lexer.sval.toLowerCase(); match(lexer.ttype); - if (!isRelation()) { + if (!isSymbolicRelation()) { // It's a simple modifier consisting of type only ms.addModifier(type); } else { @@ -192,7 +192,7 @@ public class CQLParser { debug("non-parenthesised term"); word = matchSymbol("index or term"); - if (!isRelation() && lexer.ttype != lexer.TT_WORD) + if (!isSymbolicRelation() && lexer.ttype != lexer.TT_WORD) break; index = word; @@ -232,8 +232,8 @@ public class CQLParser { } // Checks for a relation - private boolean isRelation() { - debug("isRelation: checking ttype=" + lexer.ttype + + private boolean isSymbolicRelation() { + debug("isSymbolicRelation: checking ttype=" + lexer.ttype + " (" + lexer.render() + ")"); return (lexer.ttype == '<' || lexer.ttype == '>' ||