Package proguard.classfile.visitor
Class MethodCounter
- java.lang.Object
-
- proguard.classfile.visitor.MethodCounter
-
- All Implemented Interfaces:
MemberVisitor
,Counter
public class MethodCounter extends java.lang.Object implements MemberVisitor, Counter
ThisMemberVisitor
counts the number of methods that have been visited.
-
-
Constructor Summary
Constructors Constructor Description MethodCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns the current value of the counter.void
visitAnyMember(Clazz clazz, Member member)
Visits any Member instance.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
visitLibraryField, visitLibraryMember, visitLibraryMethod, visitProgramField, visitProgramMember
-
-
-
-
Method Detail
-
getCount
public int getCount()
Description copied from interface:Counter
Returns the current value of the counter.
-
visitAnyMember
public void visitAnyMember(Clazz clazz, Member member)
Description copied from interface:MemberVisitor
Visits any Member instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyMember
in interfaceMemberVisitor
-
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
- Specified by:
visitProgramMethod
in interfaceMemberVisitor
-
-