IdentifierExpression identifier = (IdentifierExpression) value;
return "true".equals(identifier.getValue());
}
public boolean booleanEvalueate(ComparisonExpression input) {
Expression leftE = evaluate(input.getLeft());
Expression rightE = evaluate(input.getRight());
ComparisonExpressionOperator operator = input.getOperator();
if (operator.getOperator() == ComparisonExpressionOperator.Operator.OPEQ)
return comparator.equal(leftE, rightE);
if (leftE.getType() != ASTCssNodeType.NUMBER) {
problemsHandler.incompatibleComparisonOperand(leftE, operator);
return false;
}
if (rightE.getType() != ASTCssNodeType.NUMBER) {
problemsHandler.incompatibleComparisonOperand(rightE, operator);
return false;
}
return compareNumbers((NumberExpression) leftE, (NumberExpression) rightE, operator);