类 ClassNameFilter
java.lang.Object
proguard.classfile.visitor.ClassNameFilter
- 所有已实现的接口:
ClassVisitor
This
ClassVisitor delegates its visits to another given ClassVisitor, but only
when the visited class has a name that matches a given regular expression.-
构造器概要
构造器构造器说明ClassNameFilter(String regularExpression, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(String regularExpression, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(String regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(String regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(List regularExpression, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(List regularExpression, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(List regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(List regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(StringMatcher regularExpressionMatcher, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.ClassNameFilter(StringMatcher regularExpressionMatcher, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter. -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 proguard.classfile.visitor.ClassVisitor
visitLibraryClass, visitProgramClass
-
构造器详细资料
-
ClassNameFilter
Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(String regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.wildcardManager- an optional scope for StringMatcher instances that match wildcards.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.
-
ClassNameFilter
Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(List regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.wildcardManager- an optional scope for StringMatcher instances that match wildcards.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.
-
ClassNameFilter
Creates a new ClassNameFilter.- 参数:
regularExpressionMatcher- the string matcher against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(String regularExpression, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.rejectedClassVisitor- theClassVisitorto which rejected visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(String regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.wildcardManager- an optional scope for StringMatcher instances that match wildcards.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.rejectedClassVisitor- theClassVisitorto which rejected visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(List regularExpression, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.rejectedClassVisitor- theClassVisitorto which rejected visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(List regularExpression, WildcardManager wildcardManager, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpression- the regular expression against which class names will be matched.wildcardManager- an optional scope for StringMatcher instances that match wildcards.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.rejectedClassVisitor- theClassVisitorto which rejected visits will be delegated.
-
ClassNameFilter
public ClassNameFilter(StringMatcher regularExpressionMatcher, ClassVisitor acceptedClassVisitor, ClassVisitor rejectedClassVisitor) Creates a new ClassNameFilter.- 参数:
regularExpressionMatcher- the string matcher against which class names will be matched.acceptedClassVisitor- theClassVisitorto which accepted visits will be delegated.rejectedClassVisitor- theClassVisitorto which rejected visits will be delegated.
-
-
方法详细资料
-
visitAnyClass
从接口复制的说明:ClassVisitorVisits any Clazz instance. The more specific default implementations of this interface delegate to this method.- 指定者:
visitAnyClass在接口中ClassVisitor
-