Example #1
0
 public String str() {
   StringBuffer sb = new StringBuffer();
   sb.append("new ").append(baseType != null ? baseType : alias(classType)).append("[");
   if (initVariables.isEmpty()) sb.append(count);
   sb.append("]");
   if (!initVariables.isEmpty()) {
     sb.append("{");
     for (Iterator it = initVariables.iterator(); it.hasNext(); ) {
       sb.append(it.next());
       if (it.hasNext()) sb.append(", ");
     }
     sb.append("}");
   }
   return sb.toString();
 }
Example #2
0
 public void addInitVariable(String pushVar) {
   initVariables.add(pushVar);
 }