Class AttributeCounter

java.lang.Object
proguard.classfile.attribute.visitor.AttributeCounter
All Implemented Interfaces:
AttributeVisitor, Counter

public class AttributeCounter extends Object implements AttributeVisitor, Counter
This AttributeVisitor counts the number of attributes that have been visited.
  • Constructor Details

    • AttributeCounter

      public AttributeCounter()
  • Method Details

    • getCount

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

      public void visitAnyAttribute(Clazz clazz, Attribute attribute)
      Description copied from interface: AttributeVisitor
      Visits any Attribute instance. The more specific default implementations of this interface delegate to this method.
      Specified by:
      visitAnyAttribute in interface AttributeVisitor