Class UnresolvedOdexInstruction

java.lang.Object
org.jf.dexlib2.analysis.UnresolvedOdexInstruction
All Implemented Interfaces:
Instruction

public class UnresolvedOdexInstruction extends Object implements Instruction
This represents a "fixed" odexed instruction, where the object register is always null and so the correct type can't be determined. Typically, these are replaced by an equivalent instruction that would have the same effect (namely, an NPE)
  • Field Details

    • originalInstruction

      public final Instruction originalInstruction
    • objectRegisterNum

      public final int objectRegisterNum
  • Constructor Details

    • UnresolvedOdexInstruction

      public UnresolvedOdexInstruction(Instruction originalInstruction, int objectRegisterNumber)
  • Method Details

    • getOpcode

      public Opcode getOpcode()
      Description copied from interface: Instruction
      Gets the opcode of this instruction.
      Specified by:
      getOpcode in interface Instruction
      Returns:
      The Opcode of this instruction.
    • getCodeUnits

      public int getCodeUnits()
      Description copied from interface: Instruction
      Gets the size of this instruction.
      Specified by:
      getCodeUnits in interface Instruction
      Returns:
      The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.