public class ImplementedClassFilter extends 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 |
visitLibraryClass(LibraryClass libraryClass) |
void |
visitProgramClass(ProgramClass programClass) |
public 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 visitProgramClass(ProgramClass programClass)
visitProgramClass in interface ClassVisitorpublic void visitLibraryClass(LibraryClass libraryClass)
visitLibraryClass in interface ClassVisitorCopyright © 2019. All rights reserved.