Package proguard.classfile.util
Class ClassSubHierarchyInitializer
- java.lang.Object
-
- proguard.classfile.util.ClassSubHierarchyInitializer
-
- All Implemented Interfaces:
ClassPoolVisitor
,ClassVisitor
public class ClassSubHierarchyInitializer extends java.lang.Object implements ClassPoolVisitor, ClassVisitor
This ClassPoolVisitor and ClassVisitor fills out the subclasses of all classes (in the class pools) that it visits.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 Summary
Constructors Constructor Description ClassSubHierarchyInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyClass(Clazz clazz)
Visits any Clazz instance.void
visitClassPool(ClassPool classPool)
void
visitLibraryClass(LibraryClass libraryClass)
void
visitProgramClass(ProgramClass programClass)
-
-
-
Method Detail
-
visitClassPool
public void visitClassPool(ClassPool classPool)
- Specified by:
visitClassPool
in interfaceClassPoolVisitor
-
visitAnyClass
public void visitAnyClass(Clazz clazz)
Description copied from interface:ClassVisitor
Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClass
in interfaceClassVisitor
-
visitProgramClass
public void visitProgramClass(ProgramClass programClass)
- Specified by:
visitProgramClass
in interfaceClassVisitor
-
visitLibraryClass
public void visitLibraryClass(LibraryClass libraryClass)
- Specified by:
visitLibraryClass
in interfaceClassVisitor
-
-