Class DexBackedInstruction

java.lang.Object
org.jf.dexlib2.dexbacked.instruction.DexBackedInstruction
All Implemented Interfaces:
Instruction
Direct Known Subclasses:
DexBackedArrayPayload, DexBackedInstruction10t, DexBackedInstruction10x, DexBackedInstruction11n, DexBackedInstruction11x, DexBackedInstruction12x, DexBackedInstruction20bc, DexBackedInstruction20t, DexBackedInstruction21c, DexBackedInstruction21ih, DexBackedInstruction21lh, DexBackedInstruction21s, DexBackedInstruction21t, DexBackedInstruction22b, DexBackedInstruction22c, DexBackedInstruction22cs, DexBackedInstruction22s, DexBackedInstruction22t, DexBackedInstruction22x, DexBackedInstruction23x, DexBackedInstruction30t, DexBackedInstruction31c, DexBackedInstruction31i, DexBackedInstruction31t, DexBackedInstruction32x, DexBackedInstruction35c, DexBackedInstruction35mi, DexBackedInstruction35ms, DexBackedInstruction3rc, DexBackedInstruction3rmi, DexBackedInstruction3rms, DexBackedInstruction45cc, DexBackedInstruction4rcc, DexBackedInstruction51l, DexBackedPackedSwitchPayload, DexBackedSparseSwitchPayload, DexBackedUnknownInstruction

public abstract class DexBackedInstruction extends Object implements Instruction
  • Field Details

    • dexFile

      @Nonnull public final DexBackedDexFile dexFile
    • opcode

      @Nonnull public final Opcode opcode
    • instructionStart

      public final int instructionStart
  • Constructor Details

    • DexBackedInstruction

      public DexBackedInstruction(@Nonnull DexBackedDexFile dexFile, @Nonnull Opcode opcode, int instructionStart)
  • Method Details

    • getOpcode

      @Nonnull 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.
    • readFrom

      @Nonnull public static Instruction readFrom(DexBackedDexFile dexFile, @Nonnull DexReader reader)
    • buildInstruction

      private static DexBackedInstruction buildInstruction(@Nonnull DexBackedDexFile dexFile, @Nullable Opcode opcode, int instructionStartOffset)