Java Code Examples for com.android.dx.io.Opcodes#isValidShape()
The following examples show how to use
com.android.dx.io.Opcodes#isValidShape() .
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: Dop.java From Box with Apache License 2.0 | 6 votes |
/** * Constructs an instance. * * @param opcode {@code Opcodes.isValid();} the opcode value * itself * @param family {@code Opcodes.isValid();} the opcode family * @param nextOpcode {@code Opcodes.isValid();} what opcode (by * number) to try next when attempting to match an opcode to * particular arguments; {@code Opcodes.NO_NEXT} to indicate that * this is the last opcode to try in a particular chain * @param format {@code non-null;} the instruction format * @param hasResult whether the opcode has a result register; if so it * is always the first register */ public Dop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult) { if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); } if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); } if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode"); } if (format == null) { throw new NullPointerException("format == null"); } this.opcode = opcode; this.family = family; this.nextOpcode = nextOpcode; this.format = format; this.hasResult = hasResult; }
Example 2
Source File: DecodedInstruction.java From Box with Apache License 2.0 | 6 votes |
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
Example 3
Source File: Dop.java From Box with Apache License 2.0 | 6 votes |
/** * Constructs an instance. * * @param opcode {@code Opcodes.isValid();} the opcode value * itself * @param family {@code Opcodes.isValid();} the opcode family * @param nextOpcode {@code Opcodes.isValid();} what opcode (by * number) to try next when attempting to match an opcode to * particular arguments; {@code Opcodes.NO_NEXT} to indicate that * this is the last opcode to try in a particular chain * @param format {@code non-null;} the instruction format * @param hasResult whether the opcode has a result register; if so it * is always the first register */ public Dop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult) { if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); } if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); } if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode"); } if (format == null) { throw new NullPointerException("format == null"); } this.opcode = opcode; this.family = family; this.nextOpcode = nextOpcode; this.format = format; this.hasResult = hasResult; }
Example 4
Source File: DecodedInstruction.java From Box with Apache License 2.0 | 6 votes |
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
Example 5
Source File: Dop.java From J2ME-Loader with Apache License 2.0 | 6 votes |
/** * Constructs an instance. * * @param opcode {@code Opcodes.isValid();} the opcode value * itself * @param family {@code Opcodes.isValid();} the opcode family * @param nextOpcode {@code Opcodes.isValid();} what opcode (by * number) to try next when attempting to match an opcode to * particular arguments; {@code Opcodes.NO_NEXT} to indicate that * this is the last opcode to try in a particular chain * @param format {@code non-null;} the instruction format * @param hasResult whether the opcode has a result register; if so it * is always the first register */ public Dop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult) { if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); } if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); } if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode"); } if (format == null) { throw new NullPointerException("format == null"); } this.opcode = opcode; this.family = family; this.nextOpcode = nextOpcode; this.format = format; this.hasResult = hasResult; }
Example 6
Source File: DecodedInstruction.java From J2ME-Loader with Apache License 2.0 | 6 votes |
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
Example 7
Source File: Dop.java From buck with Apache License 2.0 | 6 votes |
/** * Constructs an instance. * * @param opcode {@code Opcodes.isValid();} the opcode value * itself * @param family {@code Opcodes.isValid();} the opcode family * @param nextOpcode {@code Opcodes.isValid();} what opcode (by * number) to try next when attempting to match an opcode to * particular arguments; {@code Opcodes.NO_NEXT} to indicate that * this is the last opcode to try in a particular chain * @param format {@code non-null;} the instruction format * @param hasResult whether the opcode has a result register; if so it * is always the first register */ public Dop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult) { if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); } if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); } if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode"); } if (format == null) { throw new NullPointerException("format == null"); } this.opcode = opcode; this.family = family; this.nextOpcode = nextOpcode; this.format = format; this.hasResult = hasResult; }
Example 8
Source File: DecodedInstruction.java From buck with Apache License 2.0 | 6 votes |
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }