Package org.jf.dexlib2.builder
Class BuilderInstruction
- java.lang.Object
-
- org.jf.dexlib2.builder.BuilderInstruction
-
- All Implemented Interfaces:
Instruction
- Direct Known Subclasses:
BuilderArrayPayload
,BuilderInstruction10x
,BuilderInstruction11n
,BuilderInstruction11x
,BuilderInstruction12x
,BuilderInstruction20bc
,BuilderInstruction21c
,BuilderInstruction21ih
,BuilderInstruction21lh
,BuilderInstruction21s
,BuilderInstruction22b
,BuilderInstruction22c
,BuilderInstruction22cs
,BuilderInstruction22s
,BuilderInstruction22x
,BuilderInstruction23x
,BuilderInstruction31c
,BuilderInstruction31i
,BuilderInstruction32x
,BuilderInstruction35c
,BuilderInstruction35mi
,BuilderInstruction35ms
,BuilderInstruction3rc
,BuilderInstruction3rmi
,BuilderInstruction3rms
,BuilderInstruction45cc
,BuilderInstruction4rcc
,BuilderInstruction51l
,BuilderOffsetInstruction
,BuilderSwitchPayload
public abstract class BuilderInstruction extends java.lang.Object implements Instruction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderInstruction(Opcode opcode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getCodeUnits()
Gets the size of this instruction.abstract Format
getFormat()
MethodLocation
getLocation()
Opcode
getOpcode()
Gets the opcode of this instruction.
-
-
-
Field Detail
-
opcode
@Nonnull protected final Opcode opcode
-
-
Constructor Detail
-
BuilderInstruction
protected BuilderInstruction(@Nonnull Opcode opcode)
-
-
Method Detail
-
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.
-
getLocation
@Nonnull public MethodLocation getLocation()
-
-