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(); }
public void addInitVariable(String pushVar) { initVariables.add(pushVar); }