public class

InstructionUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.InstructionUtil

Class Overview

Instruction utility methods.

Summary

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InstructionUtil ()

Public Methods

public static IInstructionOperand getOperand (IInstruction insn, int index)

Safely retrieve an operand.

Returns
  • null on error

public static T getOperand (IInstruction insn, int index, Class<T> c)

Safely retrieve an operand of the expected type.

Parameters
c expected operand type
Returns
  • null on error