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 protected
ImmutableInstruction(Opcode opcode)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getCodeUnits()
Gets the size of this instruction.abstract Format
getFormat()
Opcode
getOpcode()
Gets the opcode of this instruction.static com.google.common.collect.ImmutableList<ImmutableInstruction>
immutableListOf(java.lang.Iterable<? extends Instruction> list)
static ImmutableInstruction
of(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:Instruction
Gets the opcode of this instruction.- Specified by:
getOpcode
in interfaceInstruction
- Returns:
- The Opcode of this instruction.
-
getFormat
public abstract Format getFormat()
-
getCodeUnits
public int getCodeUnits()
Description copied from interface:Instruction
Gets the size of this instruction.- Specified by:
getCodeUnits
in 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)
-
-