Class ImmutablePackedSwitchPayload
java.lang.Object
org.jf.dexlib2.immutable.instruction.ImmutableInstruction
org.jf.dexlib2.immutable.instruction.ImmutablePackedSwitchPayload
- All Implemented Interfaces:
PackedSwitchPayload, Instruction, PayloadInstruction, SwitchPayload
public class ImmutablePackedSwitchPayload
extends ImmutableInstruction
implements PackedSwitchPayload
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Opcodeprotected final com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> Fields inherited from class ImmutableInstruction
opcode -
Constructor Summary
ConstructorsConstructorDescriptionImmutablePackedSwitchPayload(com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements) ImmutablePackedSwitchPayload(List<? extends SwitchElement> switchElements) -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.List<? extends SwitchElement> static ImmutablePackedSwitchPayloadof(PackedSwitchPayload instruction) Methods inherited from class ImmutableInstruction
getOpcode, immutableListOf, ofMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Instruction
getOpcode
-
Field Details
-
OPCODE
-
switchElements
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements
-
-
Constructor Details
-
ImmutablePackedSwitchPayload
-
ImmutablePackedSwitchPayload
public ImmutablePackedSwitchPayload(@Nullable com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements)
-
-
Method Details
-
of
-
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 classImmutableInstruction- Returns:
- The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
-
getFormat
- Specified by:
getFormatin classImmutableInstruction
-