Ejemplo n.º 1
0
  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 suffixEq(NumberExpression n1, NumberExpression n2) {
   return equals(n1.getSuffix(), n2.getSuffix());
 }
 private boolean valueEq(NumberExpression n1, NumberExpression n2) {
   return equals(n1.getValueAsDouble(), n2.getValueAsDouble());
 }
 private boolean signEq(NumberExpression n1, NumberExpression n2) {
   return n1.hasExpliciteSign() == n2.hasExpliciteSign();
 }