if ((!isTrue && compare.getOperator() == Operator.EQ) || (isTrue && compare.getOperator() == Operator.NE)) {
return Arrays.asList("NOT ", compare.getLeftExpression()); //$NON-NLS-1$
}
}
} else if (obj instanceof Not) {
Not not = (Not)obj;
return Arrays.asList("NOT ", not.getCriteria()); //$NON-NLS-1$
}
return super.translate(obj, context);
}