public class ClassSubHierarchyInitializer extends java.lang.Object implements ClassPoolVisitor, ClassVisitor
It has a more efficient implementation as a ClassPoolVisitor. You then must be careful to create a single instance and apply it to subclass pools first; for example first the program class pool, then the underlying library class pool.
This class is *NOT* thread-safe.
Constructor and Description |
---|
ClassSubHierarchyInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
void |
visitClassPool(ClassPool classPool) |
void |
visitLibraryClass(LibraryClass libraryClass) |
void |
visitProgramClass(ProgramClass programClass) |
public void visitClassPool(ClassPool classPool)
visitClassPool
in interface ClassPoolVisitor
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public void visitProgramClass(ProgramClass programClass)
visitProgramClass
in interface ClassVisitor
public void visitLibraryClass(LibraryClass libraryClass)
visitLibraryClass
in interface ClassVisitor