Class BuilderInstruction

java.lang.Object
org.jf.dexlib2.builder.BuilderInstruction
All Implemented Interfaces:
Instruction
Direct Known Subclasses:
BuilderArrayPayload, BuilderInstruction10x, BuilderInstruction11n, BuilderInstruction11x, BuilderInstruction12x, BuilderInstruction20bc, BuilderInstruction21c, BuilderInstruction21ih, BuilderInstruction21lh, BuilderInstruction21s, BuilderInstruction22b, BuilderInstruction22c, BuilderInstruction22cs, BuilderInstruction22s, BuilderInstruction22x, BuilderInstruction23x, BuilderInstruction31c, BuilderInstruction31i, BuilderInstruction32x, BuilderInstruction35c, BuilderInstruction35mi, BuilderInstruction35ms, BuilderInstruction3rc, BuilderInstruction3rmi, BuilderInstruction3rms, BuilderInstruction45cc, BuilderInstruction4rcc, BuilderInstruction51l, BuilderOffsetInstruction, BuilderSwitchPayload

public abstract class BuilderInstruction extends Object implements Instruction
  • Field Details

  • Constructor Details

    • BuilderInstruction

      protected BuilderInstruction(@Nonnull Opcode opcode)
  • 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.
    • 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.
    • getLocation

      @Nonnull public MethodLocation getLocation()