Class InstructionCounter

java.lang.Object
proguard.classfile.instruction.visitor.InstructionCounter
All Implemented Interfaces:
InstructionVisitor, Counter

public class InstructionCounter extends Object implements InstructionVisitor, Counter
This InstructionVisitor counts the number of instructions that has been visited.
  • Constructor Details

    • InstructionCounter

      public InstructionCounter()
  • Method Details

    • getCount

      public int getCount()
      Description copied from interface: Counter
      Returns the current value of the counter.
      Specified by:
      getCount in interface Counter
    • visitAnyInstruction

      public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
      Description copied from interface: InstructionVisitor
      Visits any Instruction instance. The more specific default implementations of this interface delegate to this method.
      Specified by:
      visitAnyInstruction in interface InstructionVisitor