Exemple #1
0
 /**
  * Returns a string representation of the simple expression.
  *
  * @return the string representation.
  */
 public String toString() {
   if (children.isEmpty()) return expr.toString();
   StringBuilder str = new StringBuilder(80);
   str.append("(");
   str.append(cop.get(sop).toString());
   str.append(", ");
   str.append(Tools.listToString(children, ", "));
   str.append(")");
   return str.toString();
 }
  public String toString() {
    StringBuilder str = new StringBuilder(80);

    str.append("extern \"");
    str.append(calling_convention);
    str.append("\"\n{\n");
    str.append(Tools.listToString(children, "\n") + "\n");
    str.append("}");

    return str.toString();
  }
Exemple #3
0
  public String toString() {
    StringBuilder str = new StringBuilder(80);

    str.append("__builtin_offsetof");
    str.append("(");
    str.append(Tools.listToString(specs, " "));
    str.append(",");
    str.append(getExpression().toString());
    str.append(")");

    return str.toString();
  }