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)
| 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. |
no test coverage detected