String operator = node.getOperator();
boolean forEquals = operator.equals("=") || operator.equals("<>");
boolean cmp = leftOperand.getType().comparable(rightOperand.getType(),
forEquals);
if (!cmp) {
throw new IncomparableException("Types not comparable: " + leftOperand.getType().getTypeName() +
" and " + rightOperand.getType().getTypeName());
}
}
/*