edu.umd.cs.findbugs.visitclass
public abstract class DismantleBytecode extends AnnotationVisitor
| Field Summary | |
|---|---|
| protected byte[] | codeBytes |
| protected LineNumberTable | lineNumberTable |
| static byte | M_BR |
| static byte | M_CP |
| static byte | M_INT
Meaning of bytecode operands |
| static byte | M_PAD |
| static byte | M_R |
| static byte | M_UINT |
| Method Summary | |
|---|---|
| void | afterOpcode(int seen) |
| boolean | atCatchBlock() |
| void | beforeOpcode(int seen) |
| int | getBranchFallThrough() |
| int | getBranchOffset() |
| int | getBranchTarget() |
| String | getClassConstantOperand() |
| int | getCodeByte(int offset) |
| Constant | getConstantRefOperand() |
| int | getDefaultSwitchOffset() |
| String | getDottedClassConstantOperand() If the current opcode has a class operand, get the associated class constant, dot-formatted |
| int | getIntConstant() |
| int | getMaxPC() |
| String | getNameConstantOperand() If the current opcode has a reference constant operand, get its name |
| int | getNextPC() |
| int | getOpcode() |
| int | getPC() |
| int | getPrevOpcode(int offset)
return previous opcode; |
| String | getRefConstantOperand() If the current opcode has a reference constant operand, get its string representation |
| boolean | getRefFieldIsStatic() |
| int | getRegisterOperand() |
| String | getSigConstantOperand() If the current opcode has a reference constant operand, get its signature, slash-formatted |
| String | getStringConstantOperand() If the current opcode has a string constant operand, get its name |
| static boolean | isBranch(int opcode)
Return whether or not given opcode is a branch instruction.
|
| boolean | isRegisterLoad() |
| boolean | isRegisterStore() |
| static boolean | isSwitch(int opcode)
Return whether or not given opcode is a switch instruction.
|
| void | printOpCode(int seen) |
| void | sawBranchTo(int seen) |
| void | sawClass() |
| void | sawDouble(double seen) |
| void | sawField() |
| void | sawFloat(float seen) |
| void | sawIMethod() |
| void | sawInt(int seen) |
| void | sawLong(long seen) |
| void | sawMethod() |
| void | sawOffset(int seen) |
| void | sawOpcode(int seen) |
| void | sawRegister(int r) |
| void | sawString(String seen) |
Returns: Returns the nextPC.
Parameters: offset 0 for current opcode, 1 for one before that, etc.
Parameters: opcode the opcode
Returns: true if instruction is a branch, false if not
Parameters: opcode the opcode
Returns: true if instruction is a switch, false if not