/** * Finalizes the editing of the class, and initializes all references * of the edited class w.r.t. the given program and library class pool. * At least one of the finishEditing methods should be called before * calling {@link #getProgramClass}. * * @param programClassPool the program class pool * @param libraryClassPool the library class pool */ public void finishEditing(ClassPool programClassPool, ClassPool libraryClassPool) { for (CodeComposer composer : methodComposers) { composer.finishEditing(); } // Initialize all references to/from the edited class. if (superClassName != null) { new ClassSuperHierarchyInitializer(programClassPool, libraryClassPool, null, null).visitProgramClass(programClass); new ClassSubHierarchyInitializer().visitProgramClass(programClass); } new ClassReferenceInitializer(programClassPool, libraryClassPool).visitProgramClass(programClass); }
/** * Finalizes the editing of the class, and initializes all references * of the edited class w.r.t. the given program and library class pool. * At least one of the finishEditing methods should be called before * calling {@link #getProgramClass}. * * @param programClassPool the program class pool * @param libraryClassPool the library class pool */ public void finishEditing(ClassPool programClassPool, ClassPool libraryClassPool) { for (CodeComposer composer : methodComposers) { composer.finishEditing(); } // Initialize all references to/from the edited class. if (superClassName != null) { new ClassSuperHierarchyInitializer(programClassPool, libraryClassPool, null, null).visitProgramClass(programClass); new ClassSubHierarchyInitializer().visitProgramClass(programClass); } new ClassReferenceInitializer(programClassPool, libraryClassPool).visitProgramClass(programClass); }
/** * Finalizes the editing of the class, and initializes all references * of the edited class w.r.t. the given program and library class pool. * At least one of the finishEditing methods should be called before * calling {@link #getProgramClass}. * * @param programClassPool the program class pool * @param libraryClassPool the library class pool */ public void finishEditing(ClassPool programClassPool, ClassPool libraryClassPool) { for (CodeComposer composer : methodComposers) { composer.finishEditing(); } // Initialize all references to/from the edited class. if (superClassName != null) { new ClassSuperHierarchyInitializer(programClassPool, libraryClassPool, null, null).visitProgramClass(programClass); new ClassSubHierarchyInitializer().visitProgramClass(programClass); } new ClassReferenceInitializer(programClassPool, libraryClassPool).visitProgramClass(programClass); }