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:
JesusFreke@JesusFreke.com 2010-01-12 07:12:55 +00:00
parent a3a9f0fe82
commit 4238ac2dd1
3 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}