.add(new SourceFileAttribute(fileName)) };
} else {
classFile.attributes = new Attribute[] {};
}
// this/superclass
ClassFileEntry cfThis = cp.add(new CPClass(fullName));
ClassFileEntry cfSuper = cp.add(new CPClass(classBands.getClassSuper()[classNum]));
// add interfaces
ClassFileEntry cfInterfaces[] = new ClassFileEntry[classBands.getClassInterfaces()[classNum].length];
for (i = 0; i < cfInterfaces.length; i++) {
cfInterfaces[i] = cp.add(new CPClass(classBands.getClassInterfaces()[classNum][i]));
}
// add fields
ClassFileEntry cfFields[] = new ClassFileEntry[classBands.getClassFieldCount()[classNum]];
// fieldDescr and fieldFlags used to create this
for (i = 0; i < cfFields.length; i++) {
cfFields[i] = cp.add(new CPField(classBands.getFieldDescr()[classNum][i],
classBands.getFieldFlags()[classNum][i], classBands.getFieldAttributes()[classNum][i]));
}
// add methods
ClassFileEntry cfMethods[] = new ClassFileEntry[classBands.getClassMethodCount()[classNum]];
// fieldDescr and fieldFlags used to create this
for (i = 0; i < cfMethods.length; i++) {
cfMethods[i] = cp.add(new CPMethod(classBands.getMethodDescr()[classNum][i],
classBands.getMethodFlags()[classNum][i], classBands.getMethodAttributes()[classNum][i]));
}