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
ConstructorsModifierConstructorDescriptionprivateBuilder()privateBuilder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) privateBuilder(CommandLine.Model.PositionalParamSpec original) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a validPositionalParamSpecinstance.(package private) CommandLine.Rangecapacity()(package private) CommandLine.Model.PositionalParamSpec.Buildercapacity(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 validPositionalParamSpecinstance.- Specified by:
buildin classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
self
Returns this builder.- Specified by:
selfin 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
-