MCPcopy Create free account
hub / github.com/Youlor/unpacker / get

Method get

dexfixer/src/com/android/dx/io/OpcodeInfo.java:1214–1228  ·  view source on GitHub ↗

Gets the Info for the given opcode value. @param opcode Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode value @return non-null; the associated opcode information instance

(int opcode)

Source from the content-addressed store, hash-verified

1212 * @return non-null; the associated opcode information instance
1213 */
1214 public static Info get(int opcode) {
1215 int idx = opcode - Opcodes.MIN_VALUE;
1216
1217 try {
1218 Info result = INFO[idx];
1219 if (result != null) {
1220 return result;
1221 }
1222 } catch (ArrayIndexOutOfBoundsException ex) {
1223 // Fall through.
1224 }
1225
1226 throw new IllegalArgumentException("bogus opcode: "
1227 + Hex.u2or4(opcode));
1228 }
1229
1230 /**
1231 * Gets the name of the given opcode.

Callers 3

getNameMethod · 0.95
getFormatMethod · 0.95
getIndexTypeMethod · 0.95

Calls 1

u2or4Method · 0.95

Tested by

no test coverage detected