Class InstructionCounter
- java.lang.Object
-
- proguard.classfile.instruction.visitor.InstructionCounter
-
- All Implemented Interfaces:
InstructionVisitor
,Counter
public class InstructionCounter extends java.lang.Object implements InstructionVisitor, Counter
ThisInstructionVisitor
counts the number of instructions that has been visited.
-
-
Constructor Summary
Constructors Constructor Description InstructionCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns the current value of the counter.void
visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
Visits any Instruction 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.instruction.visitor.InstructionVisitor
visitAnySwitchInstruction, visitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
-
-
-
-
Method Detail
-
getCount
public int getCount()
Description copied from interface:Counter
Returns the current value of the 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 interfaceInstructionVisitor
-
-