+ if (!isRelation()) {
+ // It's a simple modifier consisting of type only
+ relation.addModifier(type);
+ } else {
+ // It's a complex modifier of the form type=value
+ String comparision = lexer.render(lexer.ttype, false);
+ match(lexer.ttype);
+
+ // Yuck
+ String value = lexer.ttype == lexer.TT_WORD ? lexer.sval :
+ (double) lexer.nval == (int) lexer.nval ?
+ new Integer((int) lexer.nval).toString() :
+ new Double((double) lexer.nval).toString();
+
+ matchSymbol("relation-modifier value");
+ relation.addModifier(type, comparision, value);
+ }