public class MethodCollector extends java.lang.Object implements MemberVisitor
MemberVisitor
collects the methods that it visits in the given collection.Constructor and Description |
---|
MethodCollector(java.util.Collection<Method> collection)
Creates a new MethodCollector.
|
Modifier and Type | Method and Description |
---|---|
void |
visitLibraryMethod(LibraryClass libraryClass,
LibraryMethod libraryMethod) |
void |
visitProgramMethod(ProgramClass programClass,
ProgramMethod programMethod) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMember, visitLibraryField, visitLibraryMember, visitProgramField, visitProgramMember
public MethodCollector(java.util.Collection<Method> collection)
collection
- the Collection
in which all methods will be collected.public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod
in interface MemberVisitor
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
visitLibraryMethod
in interface MemberVisitor