proguard.classfile.visitor
Class MemberNameFilter
java.lang.Object
proguard.classfile.visitor.MemberNameFilter
- All Implemented Interfaces:
- MemberVisitor
public class MemberNameFilter
- extends java.lang.Object
- implements MemberVisitor
This MemberVisitor delegates its visits to another given
MemberVisitor, but only when the visited member
has a name that matches a given regular expression.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemberNameFilter
public MemberNameFilter(java.lang.String regularExpression,
MemberVisitor memberVisitor)
- Creates a new MemberNameFilter.
- Parameters:
regularExpression - the regular expression against which member
names will be matched.memberVisitor - the MemberVisitor to which visits
will be delegated.
MemberNameFilter
public MemberNameFilter(StringMatcher regularExpressionMatcher,
MemberVisitor memberVisitor)
- Creates a new MemberNameFilter.
- Parameters:
regularExpressionMatcher - the regular expression against which
member names will be matched.memberVisitor - the MemberVisitor to which
visits will be delegated.
visitProgramField
public void visitProgramField(ProgramClass programClass,
ProgramField programField)
- Specified by:
visitProgramField in interface MemberVisitor
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass,
ProgramMethod programMethod)
- Specified by:
visitProgramMethod in interface MemberVisitor
visitLibraryField
public void visitLibraryField(LibraryClass libraryClass,
LibraryField libraryField)
- Specified by:
visitLibraryField in interface MemberVisitor
visitLibraryMethod
public void visitLibraryMethod(LibraryClass libraryClass,
LibraryMethod libraryMethod)
- Specified by:
visitLibraryMethod in interface MemberVisitor