Class ImmutableInstruction

java.lang.Object
org.jf.dexlib2.immutable.instruction.ImmutableInstruction
All Implemented Interfaces:
Instruction
Direct Known Subclasses:
ImmutableArrayPayload, ImmutableInstruction10t, ImmutableInstruction10x, ImmutableInstruction11n, ImmutableInstruction11x, ImmutableInstruction12x, ImmutableInstruction20bc, ImmutableInstruction20t, ImmutableInstruction21c, ImmutableInstruction21ih, ImmutableInstruction21lh, ImmutableInstruction21s, ImmutableInstruction21t, ImmutableInstruction22b, ImmutableInstruction22c, ImmutableInstruction22cs, ImmutableInstruction22s, ImmutableInstruction22t, ImmutableInstruction22x, ImmutableInstruction23x, ImmutableInstruction30t, ImmutableInstruction31c, ImmutableInstruction31i, ImmutableInstruction31t, ImmutableInstruction32x, ImmutableInstruction35c, ImmutableInstruction35mi, ImmutableInstruction35ms, ImmutableInstruction3rc, ImmutableInstruction3rmi, ImmutableInstruction3rms, ImmutableInstruction45cc, ImmutableInstruction4rcc, ImmutableInstruction51l, ImmutablePackedSwitchPayload, ImmutableSparseSwitchPayload, ImmutableUnknownInstruction

public abstract class ImmutableInstruction extends Object implements Instruction
  • Field Details

  • Constructor Details

    • ImmutableInstruction

      protected ImmutableInstruction(@Nonnull Opcode opcode)
  • Method Details

    • of

      @Nonnull public static ImmutableInstruction of(Instruction instruction)
    • 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.
    • getFormat

      public abstract Format getFormat()
    • 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.
    • immutableListOf

      @Nonnull public static com.google.common.collect.ImmutableList<ImmutableInstruction> immutableListOf(Iterable<? extends Instruction> list)