Package proguard.classfile.util
Class MethodLinker
java.lang.Object
proguard.classfile.util.MethodLinker
- All Implemented Interfaces:
ClassVisitor,MemberVisitor
This
ClassVisitor links all corresponding non-private, non-static, non-initializer
methods in the class hierarchies of all visited classes. Visited classes are typically all class
files that are not being subclassed. Chains of links that have been created in previous
invocations are merged with new chains of links, in order to create a consistent set of chains.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemberlastMember(Member member) Finds the last method in the linked list of related methods.static ProcessablelastProcessable(Processable processable) Finds the last method in the linked list of related methods.voidvisitAnyClass(Clazz clazz) Visits any Clazz instance.voidvisitAnyMember(Clazz clazz, Member member) Visits any Member instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.classfile.visitor.ClassVisitor
visitLibraryClass, visitProgramClassMethods inherited from interface proguard.classfile.visitor.MemberVisitor
visitLibraryField, visitLibraryMember, visitLibraryMethod, visitProgramField, visitProgramMember, visitProgramMethod
-
Constructor Details
-
MethodLinker
public MethodLinker()
-
-
Method Details
-
visitAnyClass
Description copied from interface:ClassVisitorVisits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClassin interfaceClassVisitor
-
visitAnyMember
Description copied from interface:MemberVisitorVisits any Member instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyMemberin interfaceMemberVisitor
-
lastMember
Finds the last method in the linked list of related methods.- Parameters:
member- The given method.- Returns:
- The last method in the linked list.
-
lastProcessable
Finds the last method in the linked list of related methods.- Parameters:
processable- The given method.- Returns:
- The last method in the linked list.
-