public static Instruction create(final OpCode opCode, final TypeReference type, final int operand) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), type) || !checkOperand(opCode.getOperandType(), operand)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, type, operand); }
public static Instruction create(final OpCode opCode, final TypeReference type, final int operand) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), type) || !checkOperand(opCode.getOperandType(), operand)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, type, operand); }
public static Instruction create(final OpCode opCode, final FieldReference field) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), field)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, field); }
public static Instruction create(final OpCode opCode, final MethodReference method) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), method)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, method); }
public static Instruction create(final OpCode opCode, final short value) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), value)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final int value) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), value)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final int value) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), value)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final FieldReference field) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), field)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, field); }
public static Instruction create(final OpCode opCode, final FieldReference field) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), field)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, field); }
public static Instruction create(final OpCode opCode, final int value) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), value)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final MethodReference method) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), method)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, method); }
public static Instruction create(final OpCode opCode, final DynamicCallSite callSite) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), callSite)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, callSite); }
public static Instruction create(final OpCode opCode, final short value) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), value)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final MethodReference method) { VerifyArgument.notNull(opCode, "opCode"); if (!checkOperand(opCode.getOperandType(), method)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, method); }
public static Instruction create(final OpCode opCode, final VariableReference variable, final int operand) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(variable, "variable"); if (!checkOperand(opCode.getOperandType(), operand)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable, operand); }
public static Instruction create(final OpCode opCode, final VariableReference variable, final int operand) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(variable, "variable"); if (!checkOperand(opCode.getOperandType(), operand)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable, operand); }
public static Instruction create(final OpCode opCode, final TypeReference type) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(type, "type"); if (!checkOperand(opCode.getOperandType(), type)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, type); }
public static Instruction create(final OpCode opCode, final TypeReference type) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(type, "type"); if (!checkOperand(opCode.getOperandType(), type)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, type); }
public static Instruction create(final OpCode opCode, final TypeReference type) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(type, "type"); if (!checkOperand(opCode.getOperandType(), type)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, type); }
public static Instruction create(final OpCode opCode, final VariableReference variable, final int operand) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(variable, "variable"); if (!checkOperand(opCode.getOperandType(), operand)) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable, operand); }