Package proguard.classfile.visitor
Class MethodImplementationTraveler
- java.lang.Object
-
- proguard.classfile.visitor.MethodImplementationTraveler
-
- All Implemented Interfaces:
MemberVisitor
public class MethodImplementationTraveler extends java.lang.Object implements MemberVisitor
ThisMemberVisitor
lets a givenMemberVisitor
travel to all concrete and abstract implementations of the visited methods in their class hierarchies.
-
-
Constructor Summary
Constructors Constructor Description MethodImplementationTraveler(boolean visitThisMethod, boolean visitSuperMethods, boolean visitInterfaceMethods, boolean visitOverridingMethods, MemberVisitor memberVisitor)
Creates a new MethodImplementationTraveler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
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, visitLibraryField, visitLibraryMember, visitProgramField, visitProgramMember
-
-
-
-
Constructor Detail
-
MethodImplementationTraveler
public MethodImplementationTraveler(boolean visitThisMethod, boolean visitSuperMethods, boolean visitInterfaceMethods, boolean visitOverridingMethods, MemberVisitor memberVisitor)
Creates a new MethodImplementationTraveler.- Parameters:
visitThisMethod
- specifies whether to visit the originally visited methods.visitSuperMethods
- specifies whether to visit the method in the super classes.visitInterfaceMethods
- specifies whether to visit the method in the interface classes.visitOverridingMethods
- specifies whether to visit the method in the subclasses.memberVisitor
- theMemberVisitor
to which visits will be delegated.
-
-
Method Detail
-
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
-
-