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
ThisInstructionVisitorcounts 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 intgetCount()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, 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: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
-
-