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());
 }