public class InstructionCounter extends java.lang.Object implements InstructionVisitor, Counter
InstructionVisitor
counts the number of instructions that has been visited.Constructor and Description |
---|
InstructionCounter() |
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnySwitchInstruction, visitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
public int getCount()
Counter
public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
InstructionVisitor
visitAnyInstruction
in interface InstructionVisitor