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 validPositionalParamSpec
objects.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private CommandLine.Range
capacity
private CommandLine.Range
index
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
private
Builder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)
private
Builder(CommandLine.Model.PositionalParamSpec original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLine.Model.PositionalParamSpec
build()
Returns a validPositionalParamSpec
instance.(package private) CommandLine.Range
capacity()
(package private) CommandLine.Model.PositionalParamSpec.Builder
capacity(CommandLine.Range capacity)
CommandLine.Range
index()
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.Model.PositionalParamSpec.Builder
index(java.lang.String range)
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this 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.protected CommandLine.Model.PositionalParamSpec.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 Detail
-
capacity
private CommandLine.Range capacity
-
index
private CommandLine.Range index
-
-
Constructor Detail
-
Builder
private Builder()
-
Builder
private Builder(CommandLine.Model.PositionalParamSpec original)
-
Builder
private Builder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)
-
-
Method Detail
-
build
public CommandLine.Model.PositionalParamSpec build()
Returns a validPositionalParamSpec
instance.- Specified by:
build
in classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
self
protected CommandLine.Model.PositionalParamSpec.Builder self()
Returns this builder.- Specified by:
self
in classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
index
public CommandLine.Range index()
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.- See Also:
CommandLine.Parameters.index()
-
index
public CommandLine.Model.PositionalParamSpec.Builder index(java.lang.String range)
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.
-
index
public 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.
-
capacity
CommandLine.Range capacity()
-
capacity
CommandLine.Model.PositionalParamSpec.Builder capacity(CommandLine.Range capacity)
-
-