Uses of Class
picocli.CommandLine.Range
-
Packages that use CommandLine.Range Package Description picocli Provides classes and interfaces for the main picocli command line parsing andautocompletionfunctionality. -
-
Uses of CommandLine.Range in picocli
Fields in picocli declared as CommandLine.Range Modifier and Type Field Description private CommandLine.RangeCommandLine.Model.ArgSpec. arityprivate CommandLine.RangeCommandLine.Model.ArgSpec.Builder. arityprivate 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 CommandLine.RangeCommandLine.Model.ArgGroupSpec. multiplicityprivate static CommandLine.RangeCommandLine.PositionalParametersSorter. OPTION_INDEXMethods in picocli that return CommandLine.Range Modifier and Type Method Description (package private) static CommandLine.RangeCommandLine.Range. adjustForType(CommandLine.Range result, CommandLine.Model.IAnnotatedElement member)CommandLine.RangeCommandLine.Model.ArgSpec. arity()Returns how many arguments this option or positional parameter requires.CommandLine.RangeCommandLine.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(java.lang.Class<?> type)Deprecated.usedefaultArity(Field)insteadstatic CommandLine.RangeCommandLine.Range. defaultArity(java.lang.reflect.Field field)Returns the default arityRange: for interactive options/positional parameters, this is 0; foroptionsthis is 0 for booleans and 1 for other types, forparametersbooleans have arity 0, 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.RangeCommandLine.Model.PositionalParamSpec.Builder. index()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.RangeCommandLine.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.RangeCommandLine.Range. max(int newMax)Returns a new Range object with themaxvalue replaced by the specified value.CommandLine.RangeCommandLine.Range. min(int newMin)Returns a new Range object with theminvalue replaced by the specified value.CommandLine.RangeCommandLine.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.RangeCommandLine.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(java.lang.reflect.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(java.lang.reflect.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(java.lang.reflect.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.RangeCommandLine.Range. unspecified(boolean unspecified)Returns a new Range object with theisUnspecifiedvalue replaced by the specified value.static CommandLine.RangeCommandLine.Range. valueOf(java.lang.String range)Leniently parses the specified String as aRangevalue and return the result.Methods in picocli with parameters of type CommandLine.Range Modifier and Type Method Description (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, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)private intCommandLine.Interpreter. applyValuesToArrayField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)private intCommandLine.Interpreter. applyValuesToCollectionField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)private intCommandLine.Interpreter. applyValuesToMapField(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)private intCommandLine.Interpreter. applyValueToSingleValuedField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range derivedArity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)TCommandLine.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, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)private booleanCommandLine.Interpreter. assertNoMissingParameters(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, java.util.Stack<java.lang.String> args)private booleanCommandLine.Interpreter. canConsumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.String argDescription)private booleanCommandLine.Interpreter. canConsumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.lang.String argDescription)(package private) CommandLine.Model.PositionalParamSpec.BuilderCommandLine.Model.PositionalParamSpec.Builder. capacity(CommandLine.Range capacity)intCommandLine.Range. compareTo(CommandLine.Range other)private java.util.List<java.lang.Object>CommandLine.Interpreter. consumeArguments(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, boolean unquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.lang.String argDescription)private voidCommandLine.Interpreter. consumeMapArguments(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Map<java.lang.Object,java.lang.Object> result, java.lang.String argDescription)private intCommandLine.Interpreter. consumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.util.List<java.lang.Object> result, int index, java.lang.String argDescription)private voidCommandLine.Interpreter. consumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.util.Map<java.lang.Object,java.lang.Object> result, int index, java.lang.String argDescription)static CommandLine.Model.ITypeInfoCommandLine.Model.RuntimeTypeInfo. create(java.lang.Class<?> type, java.lang.Class<?>[] annotationTypes, java.lang.reflect.Type genericType, CommandLine.Range arity, java.lang.Class<?> defaultType, boolean interactive)static CommandLine.Model.ITypeInfoCommandLine.Model.RuntimeTypeInfo. create(java.lang.Class<?> type, java.lang.Class<?>[] auxiliaryTypes, java.util.List<java.lang.String> actualGenericTypeArguments, CommandLine.Range arity, java.lang.Class<?> defaultType, boolean interactive)private static java.lang.StringCommandLine. createMissingParameterMessage(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, java.util.List<CommandLine.Model.PositionalParamSpec> missingList, java.util.Stack<java.lang.String> args, int available)private java.lang.StringCommandLine.Interpreter. createMissingParameterMessageFoundOtherOption(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)CommandLine.Model.PositionalParamSpec.BuilderCommandLine.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, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)CommandLine.Model.ArgGroupSpec.BuilderCommandLine.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) java.lang.String[]CommandLine.Model.ArgSpec. splitValue(java.lang.String value, CommandLine.Model.ParserSpec parser, CommandLine.Range arity, int consumed)private java.lang.String[]CommandLine.Interpreter. unquoteAndSplit(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg)
-