Class InstructionCounter
java.lang.Object
proguard.classfile.instruction.visitor.InstructionCounter
- All Implemented Interfaces:
InstructionVisitor,Counter
This
InstructionVisitor counts the number of instructions that has been visited.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Returns the current value of the counter.voidvisitAnyInstruction(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, waitMethods inherited from interface proguard.classfile.instruction.visitor.InstructionVisitor
visitAnySwitchInstruction, visitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
-
Constructor Details
-
InstructionCounter
public InstructionCounter()
-
-
Method Details
-
getCount
public int getCount()Description copied from interface:CounterReturns the current value of the counter. -
visitAnyInstruction
public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) Description copied from interface:InstructionVisitorVisits any Instruction instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyInstructionin interfaceInstructionVisitor
-