Uses of Class
picocli.CommandLine.Range
-
Uses of CommandLine.Range in picocli
Fields in picocli declared as CommandLine.RangeModifier and TypeFieldDescriptionprivate CommandLine.Range
CommandLine.Model.ArgSpec.arity
private CommandLine.Range
CommandLine.Model.ArgSpec.Builder.arity
private final 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 final CommandLine.Range
CommandLine.Model.ArgGroupSpec.multiplicity
private static final CommandLine.Range
CommandLine.PositionalParametersSorter.OPTION_INDEX
Methods in picocli that return CommandLine.RangeModifier and TypeMethodDescription(package private) static CommandLine.Range
CommandLine.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.Range
CommandLine.Model.PositionalParamSpec.Builder.capacity()
private CommandLine.Range
CommandLine.Model.PositionalParamSpec.capacity()
static CommandLine.Range
CommandLine.Range.defaultArity
(Class<?> type) Deprecated.static CommandLine.Range
CommandLine.Range.defaultArity
(Field field) Returns the default arityRange
: for interactive options/positional parameters, this is 0; foroptions
this is effectively "0..1" for booleans and 1 for other types, forparameters
booleans have arity 1, 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.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.Range
CommandLine.PositionalParametersSorter.index
(CommandLine.Model.ArgSpec arg) CommandLine.Range.max
(int newMax) Returns a new Range object with themax
value replaced by the specified value.CommandLine.Range.min
(int newMin) Returns a new Range object with themin
value 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.Range
CommandLine.Range.optionArity
(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
(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
(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.unspecified
(boolean unspecified) Returns a new Range object with theisUnspecified
value replaced by the specified value.static CommandLine.Range
Leniently parses the specified String as aRange
value and return the result.Methods in picocli with parameters of type CommandLine.RangeModifier and TypeMethodDescription(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, Stack<String> args, Set<CommandLine.Model.ArgSpec> initialized, String argDescription) private int
CommandLine.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 int
CommandLine.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 int
CommandLine.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 int
CommandLine.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 boolean
CommandLine.Interpreter.assertNoMissingMandatoryParameter
(CommandLine.Model.ArgSpec argSpec, Stack<String> args, int i, CommandLine.Range arity) private boolean
CommandLine.Interpreter.assertNoMissingParameters
(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, Stack<String> args) private boolean
CommandLine.Interpreter.canConsumeOneArgument
(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, String argDescription) private boolean
CommandLine.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.Builder
CommandLine.Model.PositionalParamSpec.Builder.capacity
(CommandLine.Range capacity) int
CommandLine.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 void
CommandLine.Interpreter.consumeMapArguments
(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, Stack<String> args, Map<Object, Object> result, String argDescription) private int
CommandLine.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 void
CommandLine.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.ITypeInfo
CommandLine.Model.RuntimeTypeInfo.create
(Class<?> type, Class<?>[] annotationTypes, Type genericType, CommandLine.Range arity, Class<?> defaultType, boolean interactive) static CommandLine.Model.ITypeInfo
CommandLine.Model.RuntimeTypeInfo.create
(Class<?> type, Class<?>[] auxiliaryTypes, List<String> actualGenericTypeArguments, CommandLine.Range arity, Class<?> defaultType, boolean interactive) private static String
CommandLine.createMissingParameterMessage
(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, List<CommandLine.Model.PositionalParamSpec> missingList, Stack<String> args, int available) private String
CommandLine.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 boolean
CommandLine.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) boolean
CommandLine.Range.overlaps
(CommandLine.Range index) private static CommandLine.Range
CommandLine.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