| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.InstructionUtil |
Utility methods for IInstruction objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| InstructionUtil() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static IInstructionOperand |
getOperand(IInstruction insn, int index)
Safely retrieve an operand.
| ||||||||||
| static <T extends IInstructionOperand> T |
getOperand(IInstruction insn, int index, Class<T> c)
Safely retrieve an operand of the expected type.
| ||||||||||
| static int |
getSizeOf(List<? extends IInstruction> insns)
Compute the size of all the instruction list.
| ||||||||||
| static int |
getSizeUntil(List<? extends IInstruction> insns, int limit)
Compute the size of the instruction list until nth index.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Safely retrieve an operand.
Safely retrieve an operand of the expected type.
| c | expected operand type |
|---|
Compute the size of all the instruction list.
| insns | instruction list |
|---|
Compute the size of the instruction list until nth index.
| insns | instruction list |
|---|---|
| limit | nth index. |