Package proguard.classfile.visitor
Class MethodCollector
- java.lang.Object
-
- proguard.classfile.visitor.MethodCollector
-
- All Implemented Interfaces:
MemberVisitor
public class MethodCollector extends java.lang.Object implements MemberVisitor
ThisMemberVisitorcollects the methods that it visits in the given collection.
-
-
Constructor Summary
Constructors Constructor Description MethodCollector(java.util.Collection<Method> collection)Creates a new MethodCollector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)voidvisitProgramMethod(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
-
MethodCollector
public MethodCollector(java.util.Collection<Method> collection)
Creates a new MethodCollector.- Parameters:
collection- theCollectionin which all methods will be collected.
-
-
Method Detail
-
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
- Specified by:
visitProgramMethodin interfaceMemberVisitor
-
visitLibraryMethod
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
- Specified by:
visitLibraryMethodin interfaceMemberVisitor
-
-