return false;
}
if (parent instanceof InfixExpression) {
InfixExpression ie = (InfixExpression) parent;
Operator op = ie.getOperator();
if (op.equals(InfixExpression.Operator.EQUALS)
|| op.equals(InfixExpression.Operator.GREATER)
|| op.equals(InfixExpression.Operator.GREATER_EQUALS)
|| op.equals(InfixExpression.Operator.LESS)
|| op.equals(InfixExpression.Operator.LESS_EQUALS)
|| op.equals(InfixExpression.Operator.NOT_EQUALS)) {
// Only comparators - add, sub etc affect the type of the
// resulting expression
return false;
}
}