Uses of Class
picocli.CommandLine.Range
-
Uses of CommandLine.Range in picocli
Fields in picocli declared as CommandLine.RangeModifier and TypeFieldDescriptionprivate CommandLine.RangeCommandLine.Model.ArgSpec.arityprivate CommandLine.RangeCommandLine.Model.ArgSpec.Builder.arityprivate final CommandLine.RangeCommandLine.Model.PositionalParamSpec.builderCapacityprivate CommandLine.RangeCommandLine.Model.PositionalParamSpec.Builder.capacityprivate CommandLine.RangeCommandLine.Model.PositionalParamSpec.capacityprivate CommandLine.RangeCommandLine.Model.PositionalParamSpec.Builder.indexprivate CommandLine.RangeCommandLine.Model.PositionalParamSpec.indexprivate CommandLine.RangeCommandLine.Model.ArgGroupSpec.Builder.multiplicityprivate final CommandLine.RangeCommandLine.Model.ArgGroupSpec.multiplicityprivate static final CommandLine.RangeCommandLine.PositionalParametersSorter.OPTION_INDEXMethods in picocli that return CommandLine.RangeModifier and TypeMethodDescription(package private) static CommandLine.RangeCommandLine.Range.adjustForType(CommandLine.Range result, CommandLine.Model.IAnnotatedElement member) CommandLine.Model.ArgSpec.arity()Returns how many arguments this option or positional parameter requires.CommandLine.Model.ArgSpec.Builder.arity()Returns how many arguments this option or positional parameter requires.(package private) CommandLine.RangeCommandLine.Model.PositionalParamSpec.Builder.capacity()private CommandLine.RangeCommandLine.Model.PositionalParamSpec.capacity()static CommandLine.RangeCommandLine.Range.defaultArity(Class<?> type) Deprecated.static CommandLine.RangeCommandLine.Range.defaultArity(Field field) Returns the default arityRange: for interactive options/positional parameters, this is 0; foroptionsthis is effectively "0..1" for booleans and 1 for other types, forparametersbooleans have arity 1, arrays or Collections have arity "0..*", and other types have arity 1.private static CommandLine.RangeCommandLine.Range.defaultArity(CommandLine.Model.IAnnotatedElement member) private static CommandLine.RangeCommandLine.Range.defaultParameterIndex(CommandLine.Model.ITypeInfo typeInfo) CommandLine.Model.PositionalParamSpec.Builder.index()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.Model.PositionalParamSpec.index()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.private CommandLine.RangeCommandLine.PositionalParametersSorter.index(CommandLine.Model.ArgSpec arg) CommandLine.Range.max(int newMax) Returns a new Range object with themaxvalue replaced by the specified value.CommandLine.Range.min(int newMin) Returns a new Range object with theminvalue replaced by the specified value.CommandLine.Model.ArgGroupSpec.Builder.multiplicity()Returns the multiplicity of this group: how many occurrences it may have on the command line;"0..1"(optional) by default.CommandLine.Model.ArgGroupSpec.multiplicity()Returns the multiplicity of this group: how many occurrences it may have on the command line;"0..1"(optional) by default.static CommandLine.RangeCommandLine.Range.optionArity(Field field) Returns a newRangebased on theCommandLine.Option.arity()annotation on the specified field, or the field type's default arity if no arity was specified.private static CommandLine.RangeCommandLine.Range.optionArity(CommandLine.Model.IAnnotatedElement member) static CommandLine.RangeCommandLine.Range.parameterArity(Field field) Returns a newRangebased on theCommandLine.Parameters.arity()annotation on the specified field, or the field type's default arity if no arity was specified.private static CommandLine.RangeCommandLine.Range.parameterArity(CommandLine.Model.IAnnotatedElement member) (package private) static CommandLine.RangeCommandLine.Range.parameterCapacity(CommandLine.Model.IAnnotatedElement member) private static CommandLine.RangeCommandLine.Range.parameterCapacity(CommandLine.Range arity, CommandLine.Range index) static CommandLine.RangeCommandLine.Range.parameterIndex(Field field) Returns a newRangebased on theCommandLine.Parameters.index()annotation on the specified field.private static CommandLine.RangeCommandLine.Range.parameterIndex(CommandLine.Model.IAnnotatedElement member) CommandLine.Range.unspecified(boolean unspecified) Returns a new Range object with theisUnspecifiedvalue replaced by the specified value.static CommandLine.RangeLeniently parses the specified String as aRangevalue and return the result.Methods in picocli with parameters of type CommandLine.RangeModifier and TypeMethodDescription(package private) static CommandLine.RangeCommandLine.Range.adjustForType(CommandLine.Range result, CommandLine.Model.IAnnotatedElement member) private intCommandLine.Interpreter.applyOption(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) private intCommandLine.Interpreter.applyValuesToArrayField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) private intCommandLine.Interpreter.applyValuesToCollectionField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) private intCommandLine.Interpreter.applyValuesToMapField(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) private intCommandLine.Interpreter.applyValueToSingleValuedField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range derivedArity, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) CommandLine.Model.ArgSpec.Builder.arity(CommandLine.Range arity) Sets how many arguments this option or positional parameter requires, and returns this builder.private booleanCommandLine.Interpreter.assertNoMissingMandatoryParameter(CommandLine.Model.ArgSpec argSpec, Stack<String> args, int i, CommandLine.Range arity) private booleanCommandLine.Interpreter.assertNoMissingParameters(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, Stack<String> args) private booleanCommandLine.Interpreter.canConsumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, String argDescription) private booleanCommandLine.Interpreter.canConsumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, String argDescription) (package private) CommandLine.Model.PositionalParamSpec.BuilderCommandLine.Model.PositionalParamSpec.Builder.capacity(CommandLine.Range capacity) intCommandLine.Range.compareTo(CommandLine.Range other) CommandLine.Interpreter.consumeArguments(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, boolean unquoted, CommandLine.Range arity, Stack<String> args, String argDescription) private voidCommandLine.Interpreter.consumeMapArguments(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Map<Object, Object> result, String argDescription) private intCommandLine.Interpreter.consumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, List<Object> result, int index, String argDescription) private voidCommandLine.Interpreter.consumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, Map<Object, Object> result, int index, String argDescription) static CommandLine.Model.ITypeInfoCommandLine.Model.RuntimeTypeInfo.create(Class<?> type, Class<?>[] annotationTypes, Type genericType, CommandLine.Range arity, Class<?> defaultType, boolean interactive) static CommandLine.Model.ITypeInfoCommandLine.Model.RuntimeTypeInfo.create(Class<?> type, Class<?>[] auxiliaryTypes, List<String> actualGenericTypeArguments, CommandLine.Range arity, Class<?> defaultType, boolean interactive) private static StringCommandLine.createMissingParameterMessage(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, List<CommandLine.Model.PositionalParamSpec> missingList, Stack<String> args, int available) private StringCommandLine.Interpreter.createMissingParameterMessageFoundOtherOption(CommandLine.Model.ArgSpec argSpec, Stack<String> args, int i, CommandLine.Range arity) CommandLine.Model.PositionalParamSpec.Builder.index(CommandLine.Range index) Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.private booleanCommandLine.Interpreter.isArgResemblesOptionThereforeDiscontinue(CommandLine.Model.ArgSpec argSpec, Stack<String> args, int i, CommandLine.Range arity) CommandLine.Model.ArgGroupSpec.Builder.multiplicity(CommandLine.Range newValue) Sets the multiplicity of this group: how many occurrences it may have on the command line;"0..1"(optional) by default.(package private) booleanCommandLine.Range.overlaps(CommandLine.Range index) private static CommandLine.RangeCommandLine.Range.parameterCapacity(CommandLine.Range arity, CommandLine.Range index) (package private) String[]CommandLine.Model.ArgSpec.splitValue(String value, CommandLine.Model.ParserSpec parser, CommandLine.Range arity, int consumed) private String[]CommandLine.Interpreter.unquoteAndSplit(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg)
defaultArity(Field)instead