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
ThisMemberVisitor
collects 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 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
-
MethodCollector
public MethodCollector(java.util.Collection<Method> collection)
Creates a new MethodCollector.- Parameters:
collection
- theCollection
in which all methods will be collected.
-
-
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
-
-