Class ConstantCounter
- java.lang.Object
-
- proguard.classfile.constant.visitor.ConstantCounter
-
- All Implemented Interfaces:
ConstantVisitor,Counter
public class ConstantCounter extends java.lang.Object implements ConstantVisitor, Counter
ThisConstantVisitorcounts the number of constants that have been visited.
-
-
Constructor Summary
Constructors Constructor Description ConstantCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Returns the number of class members that has been visited so far.voidvisitAnyConstant(Clazz clazz, Constant constant)Visits any Constant 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.constant.visitor.ConstantVisitor
visitAnyMethodrefConstant, visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
Method Detail
-
getCount
public int getCount()
Returns the number of class members that has been visited so far.
-
visitAnyConstant
public void visitAnyConstant(Clazz clazz, Constant constant)
Description copied from interface:ConstantVisitorVisits any Constant instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyConstantin interfaceConstantVisitor
-
-