Package proguard.classfile.visitor
Class SimilarMemberVisitor
- java.lang.Object
-
- proguard.classfile.visitor.SimilarMemberVisitor
-
- All Implemented Interfaces:
MemberVisitor
public class SimilarMemberVisitor extends java.lang.Object implements MemberVisitor
ThisMemberVisitor
lets a givenMemberVisitor
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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.visitor.MemberVisitor
visitAnyMember, visitLibraryMember, visitProgramMember
-
-
-
-
Constructor Detail
-
SimilarMemberVisitor
public SimilarMemberVisitor(boolean visitThisMember, boolean visitSuperMembers, boolean visitInterfaceMembers, boolean visitOverridingMembers, MemberVisitor memberVisitor)
Creates a new SimilarMemberVisitor.- Parameters:
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
- theMemberVisitor
to which visits will be delegated.
-
SimilarMemberVisitor
public SimilarMemberVisitor(Clazz targetClass, boolean visitThisMember, boolean visitSuperMembers, boolean visitInterfaceMembers, boolean visitOverridingMembers, MemberVisitor memberVisitor)
Creates a new SimilarMemberVisitor.- Parameters:
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
- theMemberVisitor
to which visits will be delegated.
-
-
Method Detail
-
visitProgramField
public void visitProgramField(ProgramClass programClass, ProgramField programField)
- Specified by:
visitProgramField
in interfaceMemberVisitor
-
visitLibraryField
public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
- Specified by:
visitLibraryField
in interfaceMemberVisitor
-
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
- Specified by:
visitProgramMethod
in interfaceMemberVisitor
-
visitLibraryMethod
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
- Specified by:
visitLibraryMethod
in interfaceMemberVisitor
-
-