类 ClassConstantClassFilter

java.lang.Object
proguard.classfile.visitor.ClassConstantClassFilter
所有已实现的接口:
ConstantVisitor, ClassVisitor

public class ClassConstantClassFilter extends Object implements ClassVisitor, ConstantVisitor
This ClassVisitor delegates all visits to another given visitor, but only if the visited class contains the specified class constant. This can be useful to avoid applying expensive visitors when they aren't necessary.
  • 构造器详细资料

    • ClassConstantClassFilter

      public ClassConstantClassFilter(String regularExpression, ClassVisitor classVisitor)
      Creates a new ClassConstantClassFilter.
      参数:
      regularExpression - the regular expression against which class names of class constants will be matched.
      classVisitor - the class visitor for classes that contain the specified class constant.
    • ClassConstantClassFilter

      public ClassConstantClassFilter(StringMatcher regularExpressionMatcher, ClassVisitor classVisitor)
      Creates a new ClassConstantClassFilter.
      参数:
      regularExpressionMatcher - the string matcher against which class names will be matched.
      classVisitor - the class visitor for classes that contain the specified class constant.
  • 方法详细资料