Methods Summary |
---|
public static com.android.dx.io.OpcodeInfo$Info | get(int opcode)Gets the {@link @Info} for the given opcode value.
int idx = opcode - Opcodes.MIN_VALUE;
try {
Info result = INFO[idx];
if (result != null) {
return result;
}
} catch (ArrayIndexOutOfBoundsException ex) {
// Fall through.
}
throw new IllegalArgumentException("bogus opcode: "
+ Hex.u2or4(opcode));
|
public static com.android.dx.io.instructions.InstructionCodec | getFormat(int opcode)Gets the format (an {@link InstructionCodec}) for the given opcode
value.
return get(opcode).getFormat();
|
public static IndexType | getIndexType(int opcode)Gets the {@link IndexType} for the given opcode value.
return get(opcode).getIndexType();
|
public static java.lang.String | getName(int opcode)Gets the name of the given opcode.
return get(opcode).getName();
|
private static void | set(com.android.dx.io.OpcodeInfo$Info opcode)Puts the given opcode into the table of all ops.
int idx = opcode.getOpcode() - Opcodes.MIN_VALUE;
INFO[idx] = opcode;
|