public class SimilarMemberVisitor extends java.lang.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 the members' classes or of a
given target class.Constructor and Description |
---|
SimilarMemberVisitor(boolean visitThisMember,
boolean visitSuperMembers,
boolean visitInterfaceMembers,
boolean visitOverridingMembers,
MemberVisitor memberVisitor)
Creates a new SimilarMemberVisitor.
|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMember, visitLibraryMember, visitProgramMember
public SimilarMemberVisitor(boolean visitThisMember, boolean visitSuperMembers, boolean visitInterfaceMembers, boolean visitOverridingMembers, MemberVisitor memberVisitor)
visitThisMember
- specifies whether to visit the class members in the members' classes
themselves.visitSuperMembers
- specifies whether to visit the class members in the super classes of
the members' classes.visitInterfaceMembers
- specifies whether to visit the class members in the interface
classes of the members' classes.visitOverridingMembers
- specifies whether to visit the class members in the subclasses of
the members' classes.memberVisitor
- the MemberVisitor
to which visits will be delegated.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 MemberVisitor
public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
visitLibraryField
in interface MemberVisitor
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod
in interface MemberVisitor
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
visitLibraryMethod
in interface MemberVisitor