Methods Summary |
---|
public int | getFamily()Gets the opcode family. The opcode family is the unmarked (no
"/...") opcode that has equivalent semantics to this one.
return family;
|
public InsnFormat | getFormat()Gets the instruction format.
return format;
|
public java.lang.String | getName()Gets the opcode name.
return OpcodeInfo.getName(opcode);
|
public int | getNextOpcode()Gets the opcode value to try next when attempting to match an
opcode to particular arguments. This returns {@code
Opcodes.NO_NEXT} to indicate that this is the last opcode to
try in a particular chain.
return nextOpcode;
|
public int | getOpcode()Gets the opcode value.
return opcode;
|
public com.android.dx.dex.code.Dop | getOppositeTest()Gets the opcode for the opposite test of this instance. This is only
valid for opcodes which are in fact tests.
switch (opcode) {
case Opcodes.IF_EQ: return Dops.IF_NE;
case Opcodes.IF_NE: return Dops.IF_EQ;
case Opcodes.IF_LT: return Dops.IF_GE;
case Opcodes.IF_GE: return Dops.IF_LT;
case Opcodes.IF_GT: return Dops.IF_LE;
case Opcodes.IF_LE: return Dops.IF_GT;
case Opcodes.IF_EQZ: return Dops.IF_NEZ;
case Opcodes.IF_NEZ: return Dops.IF_EQZ;
case Opcodes.IF_LTZ: return Dops.IF_GEZ;
case Opcodes.IF_GEZ: return Dops.IF_LTZ;
case Opcodes.IF_GTZ: return Dops.IF_LEZ;
case Opcodes.IF_LEZ: return Dops.IF_GTZ;
}
throw new IllegalArgumentException("bogus opcode: " + this);
|
public boolean | hasResult()Returns whether this opcode uses a result register.
return hasResult;
|
public java.lang.String | toString(){@inheritDoc}
return getName();
|