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, waitvisitAnySwitchInstruction, visitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstructionpublic int getCount()
Counterpublic void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
InstructionVisitorvisitAnyInstruction in interface InstructionVisitor