Object value = readVariableLiteral(child(tree, 2), ctx);
if (op.equals("=")) {
return new EqualsCriterion(value);
} else if (op.equals("=~")) {
assertType(value, tree, Pattern.class);
return new RegexCriterion(Pattern.class.cast(value));
}
return new SimpleCriterion(comparisonOperators.get(op), value);
case MqlParser.NEGATED_CRITERION:
Criterion c = createCriterion(child(tree, 0), ctx);