Class ImmutableInstruction
java.lang.Object
org.jf.dexlib2.immutable.instruction.ImmutableInstruction
- All Implemented Interfaces:
Instruction
- Direct Known Subclasses:
ImmutableArrayPayload, ImmutableInstruction10t, ImmutableInstruction10x, ImmutableInstruction11n, ImmutableInstruction11x, ImmutableInstruction12x, ImmutableInstruction20bc, ImmutableInstruction20t, ImmutableInstruction21c, ImmutableInstruction21ih, ImmutableInstruction21lh, ImmutableInstruction21s, ImmutableInstruction21t, ImmutableInstruction22b, ImmutableInstruction22c, ImmutableInstruction22cs, ImmutableInstruction22s, ImmutableInstruction22t, ImmutableInstruction22x, ImmutableInstruction23x, ImmutableInstruction30t, ImmutableInstruction31c, ImmutableInstruction31i, ImmutableInstruction31t, ImmutableInstruction32x, ImmutableInstruction35c, ImmutableInstruction35mi, ImmutableInstruction35ms, ImmutableInstruction3rc, ImmutableInstruction3rmi, ImmutableInstruction3rms, ImmutableInstruction45cc, ImmutableInstruction4rcc, ImmutableInstruction51l, ImmutablePackedSwitchPayload, ImmutableSparseSwitchPayload, ImmutableUnknownInstruction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ImmutableConverter<ImmutableInstruction, Instruction> protected final Opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.abstract FormatGets the opcode of this instruction.static com.google.common.collect.ImmutableList<ImmutableInstruction> immutableListOf(Iterable<? extends Instruction> list) static ImmutableInstructionof(Instruction instruction)
-
Field Details
-
opcode
-
CONVERTER
-
-
Constructor Details
-
ImmutableInstruction
-
-
Method Details
-
of
-
getOpcode
Description copied from interface:InstructionGets the opcode of this instruction.- Specified by:
getOpcodein interfaceInstruction- Returns:
- The Opcode of this instruction.
-
getFormat
-
getCodeUnits
public int getCodeUnits()Description copied from interface:InstructionGets the size of this instruction.- Specified by:
getCodeUnitsin interfaceInstruction- Returns:
- The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
-
immutableListOf
@Nonnull public static com.google.common.collect.ImmutableList<ImmutableInstruction> immutableListOf(Iterable<? extends Instruction> list)
-