public class SimilarMemberVisitor extends Object implements MemberVisitor
MemberVisitor lets a given MemberVisitor
visit all members that have the same name and type as the visited methods
in the class hierarchy of a given target class.| Constructor and Description |
|---|
SimilarMemberVisitor(Clazz targetClass,
boolean visitThisMember,
boolean visitSuperMembers,
boolean visitInterfaceMembers,
boolean visitOverridingMembers,
MemberVisitor memberVisitor)
Creates a new SimilarMemberVisitor.
|
| 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 SimilarMemberVisitor(Clazz targetClass, boolean visitThisMember, boolean visitSuperMembers, boolean visitInterfaceMembers, boolean visitOverridingMembers, MemberVisitor memberVisitor)
targetClass - the class in whose hierarchy to look for
the visited class members.visitThisMember - specifies whether to visit the class
members in the target class itself.visitSuperMembers - specifies whether to visit the class
members in the super classes of the target
class.visitInterfaceMembers - specifies whether to visit the class
members in the interface classes of the
target class.visitOverridingMembers - specifies whether to visit the class
members in the subclasses of the target
class.memberVisitor - the MemberVisitor to which
visits will be delegated.public void visitProgramField(ProgramClass programClass, ProgramField programField)
visitProgramField in interface MemberVisitorpublic void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
visitLibraryField in interface MemberVisitorpublic void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod in interface MemberVisitorpublic void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
visitLibraryMethod in interface MemberVisitorCopyright © 2015. All Rights Reserved.