mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 11:50:12 +02:00
Add missing interfaces to a couple of Instruction classes
git-svn-id: https://smali.googlecode.com/svn/trunk@548 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
a3a9f0fe82
commit
4238ac2dd1
@ -28,14 +28,12 @@
|
||||
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.OffsetInstruction;
|
||||
import org.jf.dexlib.Code.*;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
|
||||
public class Instruction21t extends Instruction implements OffsetInstruction {
|
||||
public class Instruction21t extends Instruction implements OffsetInstruction, SingleRegisterInstruction {
|
||||
public static final Instruction.InstructionFactory Factory = new Factory();
|
||||
private byte regA;
|
||||
private short offset;
|
||||
@ -85,7 +83,7 @@ public class Instruction21t extends Instruction implements OffsetInstruction {
|
||||
return Format.Format21t;
|
||||
}
|
||||
|
||||
public int getRegister() {
|
||||
public int getRegisterA() {
|
||||
return regA & 0xFF;
|
||||
}
|
||||
|
||||
|
@ -29,12 +29,13 @@
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.LiteralInstruction;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.TwoRegisterInstruction;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
|
||||
public class Instruction22b extends Instruction implements TwoRegisterInstruction {
|
||||
public class Instruction22b extends Instruction implements TwoRegisterInstruction, LiteralInstruction {
|
||||
public static final Instruction.InstructionFactory Factory = new Factory();
|
||||
private byte regA;
|
||||
private byte regB;
|
||||
@ -80,7 +81,7 @@ public class Instruction22b extends Instruction implements TwoRegisterInstructio
|
||||
return regB & 0xFF;
|
||||
}
|
||||
|
||||
public byte getLiteral() {
|
||||
public long getLiteral() {
|
||||
return litC;
|
||||
}
|
||||
|
||||
|
@ -29,13 +29,14 @@
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.LiteralInstruction;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.TwoRegisterInstruction;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
|
||||
public class Instruction22s extends Instruction implements TwoRegisterInstruction {
|
||||
public class Instruction22s extends Instruction implements TwoRegisterInstruction, LiteralInstruction {
|
||||
public static final Instruction.InstructionFactory Factory = new Factory();
|
||||
private byte regA;
|
||||
private byte regB;
|
||||
@ -80,7 +81,7 @@ public class Instruction22s extends Instruction implements TwoRegisterInstructio
|
||||
return regB;
|
||||
}
|
||||
|
||||
public short getLiteral() {
|
||||
public long getLiteral() {
|
||||
return litC;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user