public class ClassInitializer extends java.lang.Object implements ClassVisitor
ClassVisitor
initializes the class hierarchy and references of all classes that it
visits. It assumes that the class hierarchies of the classes to which it refers have already been
initialized. Otherwise, you need to call subsequently call ClassSuperHierarchyInitializer
, ClassSubHierarchyInitializer
, and ClassReferenceInitializer
on all classes.
Constructor and Description |
---|
ClassInitializer(ClassPool programClassPool,
ClassPool libraryClassPool)
Creates a new ClassInitializer that initializes the class hierarchies and references of all
visited class files.
|
ClassInitializer(ClassPool programClassPool,
ClassPool libraryClassPool,
boolean checkAccessRules,
InvalidReferenceVisitor invalidReferenceVisitor,
InvalidClassReferenceVisitor invalidClassReferenceVisitor)
Creates a new ClassInitializer that initializes the references of all visited class files,
optionally visiting the provided
InvalidReferenceVisitor or InvalidClassReferenceVisitor for any invalid references. |
ClassInitializer(ClassPool programClassPool,
ClassPool libraryClassPool,
boolean checkAccessRules,
WarningPrinter missingClassWarningPrinter,
WarningPrinter missingProgramMemberWarningPrinter,
WarningPrinter missingLibraryMemberWarningPrinter,
WarningPrinter dependencyWarningPrinter)
Creates a new ClassInitializer that initializes the references of all visited class files,
optionally printing warnings if some classes or class members can't be found or if they are in
the program class pool.
|
ClassInitializer(ClassPool programClassPool,
ClassPool libraryClassPool,
WarningPrinter missingClassWarningPrinter,
WarningPrinter missingProgramMemberWarningPrinter,
WarningPrinter missingLibraryMemberWarningPrinter,
WarningPrinter dependencyWarningPrinter)
Creates a new ClassInitializer that initializes the class hierarchies and references of all
visited class files, optionally printing warnings if some classes or class members can't be
found or if they are in the program class pool.
|
Modifier and Type | Method and Description |
---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass, visitProgramClass
public ClassInitializer(ClassPool programClassPool, ClassPool libraryClassPool)
public ClassInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter missingClassWarningPrinter, WarningPrinter missingProgramMemberWarningPrinter, WarningPrinter missingLibraryMemberWarningPrinter, WarningPrinter dependencyWarningPrinter)
public ClassInitializer(ClassPool programClassPool, ClassPool libraryClassPool, boolean checkAccessRules, WarningPrinter missingClassWarningPrinter, WarningPrinter missingProgramMemberWarningPrinter, WarningPrinter missingLibraryMemberWarningPrinter, WarningPrinter dependencyWarningPrinter)
public ClassInitializer(ClassPool programClassPool, ClassPool libraryClassPool, boolean checkAccessRules, InvalidReferenceVisitor invalidReferenceVisitor, InvalidClassReferenceVisitor invalidClassReferenceVisitor)
InvalidReferenceVisitor
or InvalidClassReferenceVisitor
for any invalid references.public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor