Package org.jf.dexlib2.rewriter
Class InstructionRewriter.BaseRewrittenReferenceInstruction<T extends ReferenceInstruction>
- java.lang.Object
-
- org.jf.dexlib2.rewriter.InstructionRewriter.BaseRewrittenReferenceInstruction<T>
-
- All Implemented Interfaces:
Instruction
,ReferenceInstruction
- Direct Known Subclasses:
InstructionRewriter.RewrittenInstruction20bc
,InstructionRewriter.RewrittenInstruction21c
,InstructionRewriter.RewrittenInstruction22c
,InstructionRewriter.RewrittenInstruction31c
,InstructionRewriter.RewrittenInstruction35c
,InstructionRewriter.RewrittenInstruction3rc
- Enclosing class:
- InstructionRewriter
protected class InstructionRewriter.BaseRewrittenReferenceInstruction<T extends ReferenceInstruction> extends java.lang.Object implements ReferenceInstruction
-
-
Field Summary
Fields Modifier and Type Field Description protected T
instruction
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseRewrittenReferenceInstruction(T instruction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCodeUnits()
Gets the size of this instruction.Opcode
getOpcode()
Gets the opcode of this instruction.Reference
getReference()
int
getReferenceType()
-
-
-
Field Detail
-
instruction
@Nonnull protected T extends ReferenceInstruction instruction
-
-
Constructor Detail
-
BaseRewrittenReferenceInstruction
protected BaseRewrittenReferenceInstruction(@Nonnull T instruction)
-
-
Method Detail
-
getReference
@Nonnull public Reference getReference()
- Specified by:
getReference
in interfaceReferenceInstruction
-
getReferenceType
public int getReferenceType()
- Specified by:
getReferenceType
in interfaceReferenceInstruction
-
getOpcode
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.
-
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.
-
-