Exemplo n.º 1
0
 public String _toString() {
   Type base = t;
   int totalDims = 0;
   while (base.isArray()) {
     totalDims++;
     base = base.asArray().getElementType();
   }
   StringBuffer sb = new StringBuffer("new " + base);
   for (int i = 0; i < totalDims; i++)
     sb.append("[" + (i < dims.length ? dims[i].toString() : "") + "]");
   return sb.toString();
 }