/** * Specifies that the argument takes {@code minParameterCount} to {@code maxParameterCount} number * of parameters of type string. * * @param minParameterCount Minimum number of parameters this argument requires * @param maxParameterCount Maximum number of parameters this argument accepts * @param lengthLimit Min and maximum length, inclusive * @return The argument constructor */ public Constructor asString( int minParameterCount, int maxParameterCount, StringLengthLimit lengthLimit) { myArg.setType( new StringType(myParser, myArg, minParameterCount, maxParameterCount, lengthLimit)); return new Constructor(myArg); }
/** * Specifies that the argument takes {@code minParameterCount} to {@code maxParameterCount} number * of parameters of type boolean. * * @param minParameterCount Minimum number of parameters this argument requires * @param maxParameterCount Maximum number of parameters this argument accepts * @return The argument constructor */ public Constructor asBoolean(int minParameterCount, int maxParameterCount) { myArg.setType(new BooleanType(myParser, myArg, minParameterCount, maxParameterCount)); return new Constructor(myArg); }
/** * Specifies that the argument takes {@code minParameterCount} to {@code maxParameterCount} number * of parameters of type single boolean. * * @return The argument constructor */ public Constructor asSingleBoolean() { myArg.setType(new SingleBooleanType(myParser, myArg)); return new Constructor(myArg); }
/** * Specifies that the argument takes {@code minParameterCount} to {@code maxParameterCount} number * of parameters of type string. * * @param minParameterCount Minimum number of parameters this argument requires * @param maxParameterCount Maximum number of parameters this argument accepts * @param bounds Min and maximum values, inclusive * @return The argument constructor */ public Constructor asInteger( int minParameterCount, int maxParameterCount, NumericLimit<Integer> bounds) { myArg.setType(new IntegerType(myParser, myArg, minParameterCount, maxParameterCount, bounds)); return new Constructor(myArg); }