Class ConstantCounter

java.lang.Object
proguard.classfile.constant.visitor.ConstantCounter
All Implemented Interfaces:
ConstantVisitor, Counter

public class ConstantCounter extends Object implements ConstantVisitor, Counter
This ConstantVisitor counts the number of constants that have been visited.
  • Constructor Details

    • ConstantCounter

      public ConstantCounter()
  • Method Details

    • getCount

      public int getCount()
      Returns the number of class members that has been visited so far.
      Specified by:
      getCount in interface Counter
    • visitAnyConstant

      public void visitAnyConstant(Clazz clazz, Constant constant)
      Description copied from interface: ConstantVisitor
      Visits any Constant instance. The more specific default implementations of this interface delegate to this method.
      Specified by:
      visitAnyConstant in interface ConstantVisitor