Java Code Examples for com.android.dx.io.Opcodes#MIN_VALUE
The following examples show how to use
com.android.dx.io.Opcodes#MIN_VALUE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Dops.java From Box with Apache License 2.0 | 5 votes |
/** * Gets the {@link Dop} for the given opcode value. * * @param opcode {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the * opcode value * @return {@code non-null;} the associated opcode instance */ public static Dop get(int opcode) { int idx = opcode - Opcodes.MIN_VALUE; try { Dop result = DOPS[idx]; if (result != null) { return result; } } catch (ArrayIndexOutOfBoundsException ex) { // Fall through. } throw new IllegalArgumentException("bogus opcode"); }
Example 2
Source File: Dops.java From Box with Apache License 2.0 | 5 votes |
/** * Gets the {@link Dop} for the given opcode value. * * @param opcode {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the * opcode value * @return {@code non-null;} the associated opcode instance */ public static Dop get(int opcode) { int idx = opcode - Opcodes.MIN_VALUE; try { Dop result = DOPS[idx]; if (result != null) { return result; } } catch (ArrayIndexOutOfBoundsException ex) { // Fall through. } throw new IllegalArgumentException("bogus opcode"); }
Example 3
Source File: Dops.java From J2ME-Loader with Apache License 2.0 | 5 votes |
/** * Gets the {@link Dop} for the given opcode value. * * @param opcode {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the * opcode value * @return {@code non-null;} the associated opcode instance */ public static Dop get(int opcode) { int idx = opcode - Opcodes.MIN_VALUE; try { Dop result = DOPS[idx]; if (result != null) { return result; } } catch (ArrayIndexOutOfBoundsException ex) { // Fall through. } throw new IllegalArgumentException("bogus opcode"); }
Example 4
Source File: Dops.java From buck with Apache License 2.0 | 5 votes |
/** * Gets the {@link Dop} for the given opcode value. * * @param opcode {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the * opcode value * @return {@code non-null;} the associated opcode instance */ public static Dop get(int opcode) { int idx = opcode - Opcodes.MIN_VALUE; try { Dop result = DOPS[idx]; if (result != null) { return result; } } catch (ArrayIndexOutOfBoundsException ex) { // Fall through. } throw new IllegalArgumentException("bogus opcode"); }
Example 5
Source File: Dops.java From Box with Apache License 2.0 | 2 votes |
/** * Puts the given opcode into the table of all ops. * * @param opcode {@code non-null;} the opcode */ private static void set(Dop opcode) { int idx = opcode.getOpcode() - Opcodes.MIN_VALUE; DOPS[idx] = opcode; }
Example 6
Source File: Dops.java From Box with Apache License 2.0 | 2 votes |
/** * Puts the given opcode into the table of all ops. * * @param opcode {@code non-null;} the opcode */ private static void set(Dop opcode) { int idx = opcode.getOpcode() - Opcodes.MIN_VALUE; DOPS[idx] = opcode; }
Example 7
Source File: Dops.java From J2ME-Loader with Apache License 2.0 | 2 votes |
/** * Puts the given opcode into the table of all ops. * * @param opcode {@code non-null;} the opcode */ private static void set(Dop opcode) { int idx = opcode.getOpcode() - Opcodes.MIN_VALUE; DOPS[idx] = opcode; }
Example 8
Source File: Dops.java From buck with Apache License 2.0 | 2 votes |
/** * Puts the given opcode into the table of all ops. * * @param opcode {@code non-null;} the opcode */ private static void set(Dop opcode) { int idx = opcode.getOpcode() - Opcodes.MIN_VALUE; DOPS[idx] = opcode; }