public class MemberDescriptorFilter extends Object implements MemberVisitor
MemberVisitor delegates its visits to another given
MemberVisitor, but only when the visited member
has a descriptor that matches a given regular expression.| Constructor and Description |
|---|
MemberDescriptorFilter(StringMatcher regularExpressionMatcher,
MemberVisitor memberVisitor)
Creates a new MemberDescriptorFilter.
|
MemberDescriptorFilter(String regularExpression,
MemberVisitor memberVisitor)
Creates a new MemberDescriptorFilter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitLibraryField(LibraryClass libraryClass,
LibraryField libraryField) |
void |
visitLibraryMethod(LibraryClass libraryClass,
LibraryMethod libraryMethod) |
void |
visitProgramField(ProgramClass programClass,
ProgramField programField) |
void |
visitProgramMethod(ProgramClass programClass,
ProgramMethod programMethod) |
public MemberDescriptorFilter(String regularExpression, MemberVisitor memberVisitor)
regularExpression - the regular expression against which member
descriptors will be matched.memberVisitor - the MemberVisitor to which visits
will be delegated.public MemberDescriptorFilter(StringMatcher regularExpressionMatcher, MemberVisitor memberVisitor)
regularExpressionMatcher - the regular expression against which
member descriptors will be matched.memberVisitor - the MemberVisitor to which
visits will be delegated.public void visitProgramField(ProgramClass programClass, ProgramField programField)
visitProgramField in interface MemberVisitorpublic void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod in interface MemberVisitorpublic void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
visitLibraryField in interface MemberVisitorpublic void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
visitLibraryMethod in interface MemberVisitorCopyright © 2015. All Rights Reserved.