public class FilteredClassVisitor extends java.lang.Object implements ClassPoolVisitor
ClassPoolVisitor lets a given ClassVisitor visit all matching Clazz
instances of the class pools it visits.| Constructor and Description |
|---|
FilteredClassVisitor(java.lang.String classNameFilter,
ClassVisitor classVisitor)
Creates a new FilteredClassVisitor with the given class name filter and visitor.
|
FilteredClassVisitor(StringMatcher classNameFilter,
ClassVisitor classVisitor)
Creates a new FilteredClassVisitor with the given class name filter and visitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitClassPool(ClassPool classPool) |
public FilteredClassVisitor(java.lang.String classNameFilter,
ClassVisitor classVisitor)
classNameFilter - the regular expression that is used to filter the classes
of a ClassPool that must be visited. If the value of
classNameFilter is null, then no classes can possibly
match, so this instance will never visit any ClassPool.classVisitor - the visitor that is passed along when a ClassPool is visited.public FilteredClassVisitor(StringMatcher classNameFilter, ClassVisitor classVisitor)
classNameFilter - the filter that is used to filter the classes
of a ClassPool that must be visited. If the value of
classNameFilter is null, then no classes can possibly
match, so this instance will never visit any ClassPool.classVisitor - the visitor that is passed along when a ClassPool is visited.public void visitClassPool(ClassPool classPool)
visitClassPool in interface ClassPoolVisitor