Package picocli
Class CommandLine.Model.PositionalParamSpec.Builder
java.lang.Object
picocli.CommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
picocli.CommandLine.Model.PositionalParamSpec.Builder
- Enclosing class:
CommandLine.Model.PositionalParamSpec
public static class CommandLine.Model.PositionalParamSpec.Builder
extends CommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
Builder responsible for creating valid
PositionalParamSpec
objects.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Builder()
private
Builder
(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) private
Builder
(CommandLine.Model.PositionalParamSpec original) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a validPositionalParamSpec
instance.(package private) CommandLine.Range
capacity()
(package private) CommandLine.Model.PositionalParamSpec.Builder
capacity
(CommandLine.Range capacity) index()
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this 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.self()
Returns this builder.Methods inherited from class picocli.CommandLine.Model.ArgSpec.Builder
arity, arity, arity, auxiliaryTypes, auxiliaryTypes, completionCandidates, completionCandidates, converters, converters, defaultValue, defaultValue, description, description, descriptionKey, descriptionKey, echo, echo, getter, getter, hasInitialValue, hasInitialValue, hidden, hidden, hideParamSyntax, hideParamSyntax, inherited, inherited, initialValue, initialValue, interactive, interactive, mapFallbackValue, mapFallbackValue, parameterConsumer, parameterConsumer, paramLabel, paramLabel, preprocessor, preprocessor, prompt, prompt, required, required, root, root, scope, scope, scopeType, scopeType, setter, setter, showDefaultValue, showDefaultValue, splitRegex, splitRegex, splitRegexSynopsisLabel, splitRegexSynopsisLabel, toString, type, type, typeInfo, typeInfo, userObject, userObject, withToString
-
Field Details
-
capacity
-
index
-
-
Constructor Details
-
Builder
private Builder() -
Builder
-
Builder
-
-
Method Details
-
build
Returns a validPositionalParamSpec
instance.- Specified by:
build
in classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
self
Returns this builder.- Specified by:
self
in classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
index
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.- See Also:
-
index
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder. -
index
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder. -
capacity
CommandLine.Range capacity() -
capacity
-