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
public abstract class ImmutableInstruction extends java.lang.Object implements Instruction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImmutableInstruction(Opcode opcode)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetCodeUnits()Gets the size of this instruction.abstract FormatgetFormat()OpcodegetOpcode()Gets the opcode of this instruction.static com.google.common.collect.ImmutableList<ImmutableInstruction>immutableListOf(java.lang.Iterable<? extends Instruction> list)static ImmutableInstructionof(Instruction instruction)
-
-
-
Field Detail
-
opcode
@Nonnull protected final Opcode opcode
-
-
Constructor Detail
-
ImmutableInstruction
protected ImmutableInstruction(@Nonnull Opcode opcode)
-
-
Method Detail
-
of
@Nonnull public static ImmutableInstruction of(Instruction instruction)
-
getOpcode
@Nonnull public Opcode getOpcode()
Description copied from interface:InstructionGets the opcode of this instruction.- Specified by:
getOpcodein interfaceInstruction- Returns:
- The Opcode of this instruction.
-
getFormat
public abstract Format 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(java.lang.Iterable<? extends Instruction> list)
-
-