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 andautocompletion
functionality. -
-
Uses of CommandLine.Range in picocli
Fields in picocli declared as CommandLine.Range Modifier and Type Field Description private CommandLine.Range
CommandLine.Model.ArgSpec. arity
private CommandLine.Range
CommandLine.Model.ArgSpec.Builder. arity
private CommandLine.Range
CommandLine.Model.PositionalParamSpec. builderCapacity
private CommandLine.Range
CommandLine.Model.PositionalParamSpec.Builder. capacity
private CommandLine.Range
CommandLine.Model.PositionalParamSpec. capacity
private CommandLine.Range
CommandLine.Model.PositionalParamSpec.Builder. index
private CommandLine.Range
CommandLine.Model.PositionalParamSpec. index
private CommandLine.Range
CommandLine.Model.ArgGroupSpec.Builder. multiplicity
private CommandLine.Range
CommandLine.Model.ArgGroupSpec. multiplicity
private static CommandLine.Range
CommandLine.PositionalParametersSorter. OPTION_INDEX
Methods in picocli that return CommandLine.Range Modifier and Type Method Description (package private) static CommandLine.Range
CommandLine.Range. adjustForType(CommandLine.Range result, CommandLine.Model.IAnnotatedElement member)
CommandLine.Range
CommandLine.Model.ArgSpec. arity()
Returns how many arguments this option or positional parameter requires.CommandLine.Range
CommandLine.Model.ArgSpec.Builder. arity()
Returns how many arguments this option or positional parameter requires.(package private) CommandLine.Range
CommandLine.Model.PositionalParamSpec.Builder. capacity()
private CommandLine.Range
CommandLine.Model.PositionalParamSpec. capacity()
static CommandLine.Range
CommandLine.Range. defaultArity(java.lang.Class<?> type)
Deprecated.usedefaultArity(Field)
insteadstatic CommandLine.Range
CommandLine.Range. defaultArity(java.lang.reflect.Field field)
Returns the default arityRange
: for interactive options/positional parameters, this is 0; foroptions
this is 0 for booleans and 1 for other types, forparameters
booleans have arity 0, arrays or Collections have arity "0..*", and other types have arity 1.private static CommandLine.Range
CommandLine.Range. defaultArity(CommandLine.Model.IAnnotatedElement member)
private static CommandLine.Range
CommandLine.Range. defaultParameterIndex(CommandLine.Model.ITypeInfo typeInfo)
CommandLine.Range
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.Range
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.Range
CommandLine.PositionalParametersSorter. index(CommandLine.Model.ArgSpec arg)
CommandLine.Range
CommandLine.Range. max(int newMax)
Returns a new Range object with themax
value replaced by the specified value.CommandLine.Range
CommandLine.Range. min(int newMin)
Returns a new Range object with themin
value replaced by the specified value.CommandLine.Range
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.Range
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.Range
CommandLine.Range. optionArity(java.lang.reflect.Field field)
Returns a newRange
based on theCommandLine.Option.arity()
annotation on the specified field, or the field type's default arity if no arity was specified.private static CommandLine.Range
CommandLine.Range. optionArity(CommandLine.Model.IAnnotatedElement member)
static CommandLine.Range
CommandLine.Range. parameterArity(java.lang.reflect.Field field)
Returns a newRange
based on theCommandLine.Parameters.arity()
annotation on the specified field, or the field type's default arity if no arity was specified.private static CommandLine.Range
CommandLine.Range. parameterArity(CommandLine.Model.IAnnotatedElement member)
(package private) static CommandLine.Range
CommandLine.Range. parameterCapacity(CommandLine.Model.IAnnotatedElement member)
private static CommandLine.Range
CommandLine.Range. parameterCapacity(CommandLine.Range arity, CommandLine.Range index)
static CommandLine.Range
CommandLine.Range. parameterIndex(java.lang.reflect.Field field)
Returns a newRange
based on theCommandLine.Parameters.index()
annotation on the specified field.private static CommandLine.Range
CommandLine.Range. parameterIndex(CommandLine.Model.IAnnotatedElement member)
CommandLine.Range
CommandLine.Range. unspecified(boolean unspecified)
Returns a new Range object with theisUnspecified
value replaced by the specified value.static CommandLine.Range
CommandLine.Range. valueOf(java.lang.String range)
Leniently parses the specified String as aRange
value and return the result.Methods in picocli with parameters of type CommandLine.Range Modifier and Type Method Description (package private) static CommandLine.Range
CommandLine.Range. adjustForType(CommandLine.Range result, CommandLine.Model.IAnnotatedElement member)
private int
CommandLine.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 int
CommandLine.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 int
CommandLine.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 int
CommandLine.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 int
CommandLine.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)
T
CommandLine.Model.ArgSpec.Builder. arity(CommandLine.Range arity)
Sets how many arguments this option or positional parameter requires, and returns this builder.private boolean
CommandLine.Interpreter. assertNoMissingMandatoryParameter(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
private boolean
CommandLine.Interpreter. assertNoMissingParameters(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, java.util.Stack<java.lang.String> args)
private boolean
CommandLine.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 boolean
CommandLine.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.Builder
CommandLine.Model.PositionalParamSpec.Builder. capacity(CommandLine.Range capacity)
int
CommandLine.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 void
CommandLine.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 int
CommandLine.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 void
CommandLine.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.ITypeInfo
CommandLine.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.ITypeInfo
CommandLine.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.String
CommandLine. 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.String
CommandLine.Interpreter. createMissingParameterMessageFoundOtherOption(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
CommandLine.Model.PositionalParamSpec.Builder
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 boolean
CommandLine.Interpreter. isArgResemblesOptionThereforeDiscontinue(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
CommandLine.Model.ArgGroupSpec.Builder
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) boolean
CommandLine.Range. overlaps(CommandLine.Range index)
private static CommandLine.Range
CommandLine.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)
-