Package proguard.classfile.visitor
Class ClassCounter
- java.lang.Object
-
- proguard.classfile.visitor.ClassCounter
-
- All Implemented Interfaces:
ClassVisitor
,Counter
public class ClassCounter extends java.lang.Object implements ClassVisitor, Counter
ThisClassVisitor
counts the number of classes that has been visited.
-
-
Constructor Summary
Constructors Constructor Description ClassCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns the current value of the counter.void
visitAnyClass(Clazz clazz)
Visits any Clazz instance.-
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.ClassVisitor
visitLibraryClass, visitProgramClass
-
-
-
-
Method Detail
-
getCount
public int getCount()
Description copied from interface:Counter
Returns the current value of the counter.
-
visitAnyClass
public void visitAnyClass(Clazz clazz)
Description copied from interface:ClassVisitor
Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClass
in interfaceClassVisitor
-
-