public class ImplementedClassFilter extends java.lang.Object implements ClassVisitor
ClassVisitor delegates its visits to one of two given ClassVisitors,
depending on whether the visited classes extend/implement a given class or not.
Filter: - accepted: the visited class extends/implements the given class. - rejected: the visited class does not extend/implement the given class.
| Constructor and Description |
|---|
ImplementedClassFilter(Clazz implementedClass,
boolean includeImplementedClass,
ClassVisitor acceptedClassVisitor,
ClassVisitor rejectedClassVisistor)
Creates a new ImplementedClassFilter.
|
| 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 ImplementedClassFilter(Clazz implementedClass, boolean includeImplementedClass, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisistor)
implementedClass - the class whose implementations will be accepted.includeImplementedClass - if true, the implemented class itself will also be accepted,
otherwise it will be rejected.acceptedClassVisitor - the ClassVisitor to which visits of classes
implementing the given class will be delegated.rejectedClassVisistor - the ClassVisitor to which visits of classes not
implementing the given class will be delegated.public void visitAnyClass(Clazz clazz)
ClassVisitorvisitAnyClass in interface ClassVisitor