public class ClassCounter extends java.lang.Object implements ClassVisitor, Counter
ClassVisitor
counts the number of classes that has been visited.Constructor and Description |
---|
ClassCounter() |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the current value of the counter.
|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass, visitProgramClass
public int getCount()
Counter
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor