case MqlParser.COMPARE_CRITERION:
String op = child(tree, 1).getText();
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);