private boolean appendNumberExpression(NumberExpression node) { if (node.hasOriginalString()) { cssOnly.append(node.getOriginalString()); } else { if (node.hasExpliciteSign()) { if (0 < node.getValueAsDouble()) cssOnly.append('+'); else cssOnly.append('-'); } cssOnly.append(PrintUtils.formatNumber(node.getValueAsDouble()) + node.getSuffix()); } return true; }
private boolean valueEq(NumberExpression n1, NumberExpression n2) { return equals(n1.getValueAsDouble(), n2.getValueAsDouble()); }