Пример #1
0
 String printDiags() {
   StringBuilder buf = new StringBuilder();
   for (String s : errDiags) {
     buf.append(s);
     buf.append("\n");
   }
   return buf.toString();
 }
Пример #2
0
 String asExpressionList(TypeKind type) {
   StringBuilder buf = new StringBuilder();
   String sep = "";
   for (int i = 0; i < arity; i++) {
     buf.append(sep);
     buf.append(type.valueString);
     sep = ",";
   }
   return buf.toString();
 }
Пример #3
0
 private String asExpressionList() {
   StringBuilder buf = new StringBuilder();
   String sep = "";
   for (TypeKind tk : typeKindList) {
     buf.append(sep);
     buf.append(tk.valueString);
     sep = ",";
   }
   return buf.toString();
 }
Пример #4
0
 private String asBytecodeString() {
   StringBuilder buf = new StringBuilder();
   int count = 0;
   for (TypeKind arg : typeKindList) {
     if (count == (typeKindList.size() - 1)) {
       buf.append("[");
     }
     buf.append(arg.bytecodeString);
     count++;
   }
   return buf.toString();
 }
Пример #5
0
 private String asParameterList() {
   StringBuilder buf = new StringBuilder();
   String sep = "";
   int count = 0;
   for (TypeKind arg : typeKindList) {
     buf.append(sep);
     buf.append(arg.typeString);
     if (count == (typeKindList.size() - 1)) {
       buf.append("...");
     }
     buf.append(" ");
     buf.append("arg" + count++);
     sep = ",";
   }
   return buf.toString();
 }