Exemplo n.º 1
0
 public Attribute createAttribute(DataInputStream in, String name, int nameIndex, int length)
     throws IOException {
   if (name.equals("InnerClasses")) {
     innerClasses = new InnerClasses(in, nameIndex, length);
     Info[] allInnerInfos = innerClasses.getClasses();
     for (int i = 0; i < allInnerInfos.length; i++) {
       if (allInnerInfos[i].classIndex == getThisClass()) {
         innerClassInfo = allInnerInfos[i];
       }
     }
     return innerClasses;
   }
   if (name.equals("Signature")) {
     signature = new Signature(this, in, nameIndex, length);
     return signature;
   }
   return null;
 }
Exemplo n.º 2
0
  public void visitInnerClasses(InnerClasses ic) {
    ic.accept(visitor);

    InnerClass[] ics = ic.getInnerClasses();
    for (int i = 0; i < ics.length; i++) ics[i].accept(this);
  }