Class DexBackedPackedSwitchPayload
java.lang.Object
org.jf.dexlib2.dexbacked.instruction.DexBackedInstruction
org.jf.dexlib2.dexbacked.instruction.DexBackedPackedSwitchPayload
- All Implemented Interfaces:
PackedSwitchPayload,Instruction,PayloadInstruction,SwitchPayload
public class DexBackedPackedSwitchPayload
extends DexBackedInstruction
implements PackedSwitchPayload
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intfinal intprivate static final intprivate static final intFields inherited from class org.jf.dexlib2.dexbacked.instruction.DexBackedInstruction
dexFile, instructionStart, opcode -
Constructor Summary
ConstructorsConstructorDescriptionDexBackedPackedSwitchPayload(DexBackedDexFile dexFile, int instructionStart) -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.List<? extends SwitchElement> Methods inherited from class org.jf.dexlib2.dexbacked.instruction.DexBackedInstruction
getOpcode, readFromMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jf.dexlib2.iface.instruction.Instruction
getOpcode
-
Field Details
-
elementCount
public final int elementCount -
ELEMENT_COUNT_OFFSET
private static final int ELEMENT_COUNT_OFFSET- See Also:
-
FIRST_KEY_OFFSET
private static final int FIRST_KEY_OFFSET- See Also:
-
TARGETS_OFFSET
private static final int TARGETS_OFFSET- See Also:
-
-
Constructor Details
-
DexBackedPackedSwitchPayload
-
-
Method Details
-
getSwitchElements
- Specified by:
getSwitchElementsin interfacePackedSwitchPayload- Specified by:
getSwitchElementsin interfaceSwitchPayload- 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:InstructionGets the size of this instruction.- Specified by:
getCodeUnitsin interfaceInstruction- Overrides:
getCodeUnitsin classDexBackedInstruction- Returns:
- The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
-