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 Tinstruction
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseRewrittenReferenceInstruction(T instruction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCodeUnits()Gets the size of this instruction.OpcodegetOpcode()Gets the opcode of this instruction.ReferencegetReference()intgetReferenceType()
-
-
-
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:
getReferencein interfaceReferenceInstruction
-
getReferenceType
public int getReferenceType()
- Specified by:
getReferenceTypein interfaceReferenceInstruction
-
getOpcode
public Opcode 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.
-
-