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 validPositionalParamSpecobjects.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private CommandLine.Rangecapacityprivate CommandLine.Rangeindex
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()privateBuilder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)privateBuilder(CommandLine.Model.PositionalParamSpec original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandLine.Model.PositionalParamSpecbuild()Returns a validPositionalParamSpecinstance.(package private) CommandLine.Rangecapacity()(package private) CommandLine.Model.PositionalParamSpec.Buildercapacity(CommandLine.Range capacity)CommandLine.Rangeindex()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.Model.PositionalParamSpec.Builderindex(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.Builderindex(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.Builderself()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 validPositionalParamSpecinstance.- Specified by:
buildin classCommandLine.Model.ArgSpec.Builder<CommandLine.Model.PositionalParamSpec.Builder>
-
self
protected CommandLine.Model.PositionalParamSpec.Builder self()
Returns this builder.- Specified by:
selfin 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)
-
-