Class InstructionRewriter.BaseRewrittenReferenceInstruction<T extends ReferenceInstruction>

java.lang.Object
org.jf.dexlib2.rewriter.InstructionRewriter.BaseRewrittenReferenceInstruction<T>
All Implemented Interfaces:
Instruction, ReferenceInstruction
Direct Known Subclasses:
InstructionRewriter.RewrittenInstruction20bc, InstructionRewriter.RewrittenInstruction21c, InstructionRewriter.RewrittenInstruction22c, InstructionRewriter.RewrittenInstruction31c, InstructionRewriter.RewrittenInstruction35c, InstructionRewriter.RewrittenInstruction3rc
Enclosing class:
InstructionRewriter

protected class InstructionRewriter.BaseRewrittenReferenceInstruction<T extends ReferenceInstruction> extends Object implements ReferenceInstruction
  • Field Details

  • Constructor Details

    • BaseRewrittenReferenceInstruction

      protected BaseRewrittenReferenceInstruction(@Nonnull T instruction)
  • Method Details

    • getReference

      @Nonnull public Reference getReference()
      Specified by:
      getReference in interface ReferenceInstruction
    • getReferenceType

      public int getReferenceType()
      Specified by:
      getReferenceType in interface ReferenceInstruction
    • 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.