Class DexBackedInstruction
java.lang.Object
org.jf.dexlib2.dexbacked.instruction.DexBackedInstruction
- All Implemented Interfaces:
Instruction
- Direct Known Subclasses:
DexBackedArrayPayload,DexBackedInstruction10t,DexBackedInstruction10x,DexBackedInstruction11n,DexBackedInstruction11x,DexBackedInstruction12x,DexBackedInstruction20bc,DexBackedInstruction20t,DexBackedInstruction21c,DexBackedInstruction21ih,DexBackedInstruction21lh,DexBackedInstruction21s,DexBackedInstruction21t,DexBackedInstruction22b,DexBackedInstruction22c,DexBackedInstruction22cs,DexBackedInstruction22s,DexBackedInstruction22t,DexBackedInstruction22x,DexBackedInstruction23x,DexBackedInstruction30t,DexBackedInstruction31c,DexBackedInstruction31i,DexBackedInstruction31t,DexBackedInstruction32x,DexBackedInstruction35c,DexBackedInstruction35mi,DexBackedInstruction35ms,DexBackedInstruction3rc,DexBackedInstruction3rmi,DexBackedInstruction3rms,DexBackedInstruction45cc,DexBackedInstruction4rcc,DexBackedInstruction51l,DexBackedPackedSwitchPayload,DexBackedSparseSwitchPayload,DexBackedUnknownInstruction
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDexBackedInstruction(DexBackedDexFile dexFile, Opcode opcode, int instructionStart) -
Method Summary
Modifier and TypeMethodDescriptionprivate static DexBackedInstructionbuildInstruction(DexBackedDexFile dexFile, Opcode opcode, int instructionStartOffset) intGets the size of this instruction.Gets the opcode of this instruction.static InstructionreadFrom(DexBackedDexFile dexFile, DexReader reader)
-
Field Details
-
dexFile
-
opcode
-
instructionStart
public final int instructionStart
-
-
Constructor Details
-
DexBackedInstruction
public DexBackedInstruction(@Nonnull DexBackedDexFile dexFile, @Nonnull Opcode opcode, int instructionStart)
-
-
Method Details
-
getOpcode
Description copied from interface:InstructionGets the opcode of this instruction.- Specified by:
getOpcodein interfaceInstruction- Returns:
- The Opcode of this instruction.
-
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.
-
readFrom
-
buildInstruction
private static DexBackedInstruction buildInstruction(@Nonnull DexBackedDexFile dexFile, @Nullable Opcode opcode, int instructionStartOffset)
-