public static Instruction create(final OpCode opCode, final VariableReference variable) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.Local) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable); }
public static Instruction create(final OpCode opCode, final VariableReference variable) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.Local) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable); }
public static Instruction create(final OpCode opCode) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.None) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode); }
public static Instruction create(final OpCode opCode, final VariableReference variable) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.Local) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, variable); }
public static Instruction create(final OpCode opCode) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.None) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode); }
public static Instruction create(final OpCode opCode) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.None) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode); }
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 long value) { VerifyArgument.notNull(opCode, "opCode"); if (opCode.getOperandType() != OperandType.I8 && opCode.getOperandType() != OperandType.WideConstant) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, value); }
public static Instruction create(final OpCode opCode, final SwitchInfo switchInfo) { VerifyArgument.notNull(opCode, "opCode"); VerifyArgument.notNull(switchInfo, "switchInfo"); if (opCode.getOperandType() != OperandType.Switch) { throw new IllegalArgumentException(String.format("Invalid operand for OpCode %s.", opCode)); } return new Instruction(opCode, switchInfo); }
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 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 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 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, 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); }