edu.umd.cs.findbugs
public class OpcodeStack extends Object implements Constants2
stack.sawOpcode(this,seen);
at the bottom of their sawOpcode method. at any point you can then inspect the stack and see what the types of objects are on the stack, including constant values if they were pushed. The types described are of course, only the static types. There are some outstanding opcodes that have yet to be implemented, I couldn't find any code that actually generated these, so i didn't put them in because I couldn't test them:Nested Class Summary | |
---|---|
static class | OpcodeStack.Item |
Constructor Summary | |
---|---|
OpcodeStack() |
Method Summary | |
---|---|
void | clear() |
static String | getExceptionSig(DismantleBytecode dbc, CodeException e) |
int | getLastUpdate(int reg) |
int | getNumLastUpdates() |
int | getStackDepth() |
OpcodeStack.Item | getStackItem(int stackOffset) |
void | mergeJumps(DismantleBytecode dbc) |
int | resetForMethodEntry(DismantleBytecode v) |
void | sawOpcode(DismantleBytecode dbc, int seen) |