类 FilteredClassVisitor

java.lang.Object
proguard.classfile.visitor.FilteredClassVisitor
所有已实现的接口:
ClassPoolVisitor

public class FilteredClassVisitor extends Object implements ClassPoolVisitor
This ClassPoolVisitor lets a given ClassVisitor visit all matching Clazz instances of the class pools it visits.
  • 构造器详细资料

    • FilteredClassVisitor

      public FilteredClassVisitor(String classNameFilter, ClassVisitor classVisitor)
      Creates a new FilteredClassVisitor with the given class name filter and visitor.
      参数:
      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.
    • FilteredClassVisitor

      public FilteredClassVisitor(StringMatcher classNameFilter, ClassVisitor classVisitor)
      Creates a new FilteredClassVisitor with the given class name filter and visitor.
      参数:
      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.
  • 方法详细资料