Class ImmutableSparseSwitchPayload
java.lang.Object
org.jf.dexlib2.immutable.instruction.ImmutableInstruction
org.jf.dexlib2.immutable.instruction.ImmutableSparseSwitchPayload
- All Implemented Interfaces:
SparseSwitchPayload, Instruction, PayloadInstruction, SwitchPayload
public class ImmutableSparseSwitchPayload
extends ImmutableInstruction
implements SparseSwitchPayload
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Opcodeprotected final com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> Fields inherited from class ImmutableInstruction
opcode -
Constructor Summary
ConstructorsConstructorDescriptionImmutableSparseSwitchPayload(com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements) ImmutableSparseSwitchPayload(List<? extends SwitchElement> switchElements) -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.List<? extends SwitchElement> static ImmutableSparseSwitchPayloadof(SparseSwitchPayload 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
-
ImmutableSparseSwitchPayload
-
ImmutableSparseSwitchPayload
public ImmutableSparseSwitchPayload(@Nullable com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements)
-
-
Method Details
-
of
-
getSwitchElements
- Specified by:
getSwitchElementsin interfaceSwitchPayload
-
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
-