Class BuilderPackedSwitchPayload
java.lang.Object
org.jf.dexlib2.builder.BuilderInstruction
org.jf.dexlib2.builder.BuilderSwitchPayload
org.jf.dexlib2.builder.instruction.BuilderPackedSwitchPayload
- All Implemented Interfaces:
PackedSwitchPayload,Instruction,PayloadInstruction,SwitchPayload
-
Field Summary
FieldsFields inherited from class org.jf.dexlib2.builder.BuilderInstruction
opcode -
Constructor Summary
ConstructorsConstructorDescriptionBuilderPackedSwitchPayload(int startKey, List<? extends Label> switchElements) -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.Methods inherited from class org.jf.dexlib2.builder.BuilderSwitchPayload
getReferrerMethods inherited from class org.jf.dexlib2.builder.BuilderInstruction
getLocation, getOpcodeMethods 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
-
OPCODE
-
switchElements
-
-
Constructor Details
-
BuilderPackedSwitchPayload
-
-
Method Details
-
getSwitchElements
- Specified by:
getSwitchElementsin interfacePackedSwitchPayload- Specified by:
getSwitchElementsin interfaceSwitchPayload- Specified by:
getSwitchElementsin classBuilderSwitchPayload- 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 classBuilderInstruction- 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 classBuilderInstruction
-