Class DexBackedPackedSwitchPayload

    • Field Detail

      • elementCount

        public final int elementCount
    • Constructor Detail

      • DexBackedPackedSwitchPayload

        public DexBackedPackedSwitchPayload​(@Nonnull
                                            DexBackedDexFile dexFile,
                                            int instructionStart)
    • Method Detail

      • getSwitchElements

        @Nonnull
        public java.util.List<? extends SwitchElement> getSwitchElements()
        Specified by:
        getSwitchElements in interface PackedSwitchPayload
        Specified by:
        getSwitchElements in interface SwitchPayload
        Returns:
        A list of the switch elements associated with this switch payload instruction. The returned list must have switch elements with keys that are ordered and sequential.
      • getCodeUnits

        public int getCodeUnits()
        Description copied from interface: Instruction
        Gets the size of this instruction.
        Specified by:
        getCodeUnits in interface Instruction
        Overrides:
        getCodeUnits in class DexBackedInstruction
        Returns:
        The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.