Esempio n. 1
0
 public String toString(int tab) {
   StringBuffer result = new StringBuffer(tabString(tab));
   result.append("Recovered method:\n"); // $NON-NLS-1$
   this.methodDeclaration.print(tab + 1, result);
   if (this.annotations != null) {
     for (int i = 0; i < this.annotationCount; i++) {
       result.append("\n"); // $NON-NLS-1$
       result.append(this.annotations[i].toString(tab + 1));
     }
   }
   if (this.localTypes != null) {
     for (int i = 0; i < this.localTypeCount; i++) {
       result.append("\n"); // $NON-NLS-1$
       result.append(this.localTypes[i].toString(tab + 1));
     }
   }
   if (this.methodBody != null) {
     result.append("\n"); // $NON-NLS-1$
     result.append(this.methodBody.toString(tab + 1));
   }
   return result.toString();
 }