public class ClassPresenceFilter extends java.lang.Object implements ClassVisitor
ClassVisitor delegates its visits to one of two
ClassVisitor instances, depending on whether the name of
the visited class file is present in a given ClassPool or not.| Constructor and Description |
|---|
ClassPresenceFilter(ClassPool classPool,
ClassVisitor presentClassVisitor,
ClassVisitor missingClassVisitor)
Creates a new ClassPresenceFilter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitLibraryClass, visitProgramClasspublic ClassPresenceFilter(ClassPool classPool, ClassVisitor presentClassVisitor, ClassVisitor missingClassVisitor)
classPool - the ClassPool in which the
presence will be tested.presentClassVisitor - the ClassVisitor to which visits
of present class files will be delegated.missingClassVisitor - the ClassVisitor to which visits
of missing class files will be delegated.public void visitAnyClass(Clazz clazz)
ClassVisitorvisitAnyClass in interface ClassVisitor