public class MethodCounter extends java.lang.Object implements MemberVisitor, Counter
MemberVisitor
counts the number of methods that have been visited.Constructor and Description |
---|
MethodCounter() |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryField, visitLibraryMember, visitLibraryMethod, visitProgramField, visitProgramMember
public int getCount()
Counter
public void visitAnyMember(Clazz clazz, Member member)
MemberVisitor
visitAnyMember
in interface MemberVisitor
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod
in interface MemberVisitor