Class UnresolvedOdexInstruction

  • All Implemented Interfaces:
    Instruction

    public class UnresolvedOdexInstruction
    extends java.lang.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 Detail

      • originalInstruction

        public final Instruction originalInstruction
      • objectRegisterNum

        public final int objectRegisterNum
    • Constructor Detail

      • UnresolvedOdexInstruction

        public UnresolvedOdexInstruction​(Instruction originalInstruction,
                                         int objectRegisterNumber)
    • Method Detail

      • 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.