CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.add(CommandLine.Model.ArgSpec arg) |
Adds the specified option spec or positional parameter spec to the list of configured arguments to expect.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addArgGroup(CommandLine.Model.ArgGroupSpec group) |
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMethodSubcommands() |
Reflects on the class of the user object and registers any command methods
(class methods annotated with @Command ) as subcommands.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMethodSubcommands(CommandLine.IFactory factory) |
Reflects on the class of the user object and registers any command methods
(class methods annotated with @Command ) as subcommands.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMixin(String name,
CommandLine.Model.CommandSpec mixin) |
Adds the specified mixin CommandSpec object to the map of mixins for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMixin(String name,
CommandLine.Model.CommandSpec mixin,
CommandLine.Model.IAnnotatedElement annotatedElement) |
Adds the specified mixin CommandSpec object to the map of mixins for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addOption(CommandLine.Model.OptionSpec option) |
Adds the specified option spec to the list of configured arguments to expect.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addParentCommandElement(CommandLine.Model.IAnnotatedElement spec) |
Adds the specified {@literal @}ParentCommand -annotated program element to the list of elements for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addPositional(CommandLine.Model.PositionalParamSpec positional) |
Adds the specified positional parameter spec to the list of configured arguments to expect.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addSpecElement(CommandLine.Model.IAnnotatedElement spec) |
Adds the specified {@literal @}Spec -annotated program element to the list of elements for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addSubcommand(String name,
CommandLine subCommandLine) |
Adds the specified subcommand with the specified name.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addSubcommand(String name,
CommandLine.Model.CommandSpec subcommand) |
Adds the specified subcommand with the specified name.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addUnmatchedArgsBinding(CommandLine.Model.UnmatchedArgsBinding spec) |
Adds the specified UnmatchedArgsBinding to the list of model objects to capture unmatched arguments for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.aliases(String... aliases) |
Sets the alternative names by which this subcommand is recognized on the command line.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.ArgSpec.command() |
Returns the command this option or positional parameter belongs to.
|
protected CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.commandLine(CommandLine commandLine) |
Sets the CommandLine constructed with this CommandSpec model.
|
CommandLine.Model.CommandSpec |
CommandLine.Help.commandSpec() |
Returns the CommandSpec model that this Help was constructed with.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.Messages.commandSpec() |
Returns the CommandSpec of this object, never null .
|
CommandLine.Model.CommandSpec |
CommandLine.ParseResult.commandSpec() |
Returns the CommandSpec for the matched command.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.create() |
Creates and returns a new CommandSpec without any associated user object.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.defaultValueProvider(CommandLine.IDefaultValueProvider defaultValueProvider) |
Sets default value provider for this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.exitCodeOnExecutionException(int newValue) |
Sets exit code signifying that an exception occurred when invoking the Runnable, Callable or Method user object of a command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.exitCodeOnInvalidInput(int newValue) |
Sets exit code for command line usage error.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.exitCodeOnSuccess(int newValue) |
Sets exit code for successful termination.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.exitCodeOnUsageHelp(int newValue) |
Sets exit code for successful termination after printing usage help on user request.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.exitCodeOnVersionHelp(int newValue) |
Sets exit code for successful termination after printing version help on user request.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObject(Object userObject) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObject(Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObjectLenient(Object userObject) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObjectLenient(Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
CommandLine.Model.CommandSpec |
CommandLine.getCommandSpec() |
Returns the CommandSpec model that this CommandLine was constructed with.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.helpCommand(boolean newValue) |
Sets whether this is a help command and required parameter checking should be suspended.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.interpolateVariables(Boolean interpolate) |
Sets whether variables should be interpolated in String values.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.mixinStandardHelpOptions(boolean newValue) |
Sets whether the standard help options should be mixed in with this command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.modelTransformer(CommandLine.IModelTransformer modelTransformer) |
Sets the model transformer for this CommandSpec instance.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.name(String name) |
Sets the String to use as the program name in the synopsis line of the help message.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.negatableOptionTransformer(CommandLine.INegatableOptionTransformer newValue) |
Sets the INegatableOptionTransformer used to create the negative form of negatable options.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.optionsCaseInsensitive(boolean caseInsensitiveOptions) |
Sets the case-insensitivity of options.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.parent() |
Returns the parent command of this subcommand, or null if this is a top-level command.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.parent(CommandLine.Model.CommandSpec parent) |
Sets the parent command of this subcommand.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.parser(CommandLine.Model.ParserSpec settings) |
Initializes the parser specification for this command from the specified settings and returns this commandSpec.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.preprocessor(CommandLine.IParameterPreprocessor preprocessor) |
Sets the preprocessor for this CommandSpec instance.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.remove(CommandLine.Model.ArgSpec arg) |
(INCUBATING) Removes the specified option spec or positional parameter spec from the list of configured arguments to expect.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.resourceBundle(ResourceBundle bundle) |
Initializes the resource bundle for this command: sets the UsageMessageSpec.messages to
a Messages object created from this command spec and the specified bundle, and then sets the
ArgSpec.messages of all options and positional parameters in this command
to the same Messages instance.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.resourceBundleBaseName(String resourceBundleBaseName) |
Initializes the resource bundle for this command: sets the UsageMessageSpec.messages to
a Messages object created from this command spec and the specified bundle, and then sets the
ArgSpec.messages of all options and positional parameters in this command
to the same Messages instance.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.root() |
Returns the root command: the top-level command of the hierarchy, never null .
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.scopeType(CommandLine.ScopeType scopeType) |
Sets the scope of where this argument applies: only this command, or also all sub (and sub-sub) commands, and returns this builder.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.setAddMethodSubcommands(Boolean addMethodSubcommands) |
Sets whether method commands should be added as subcommands.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.subcommandsCaseInsensitive(boolean caseInsensitiveSubcommands) |
Sets the case-insensitivity of subcommands.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.subcommandsRepeatable(boolean subcommandsRepeatable) |
Sets whether the subcommands of this command are repeatable, that is, whether such subcommands can
occur multiple times and may be followed by sibling commands instead of just child commands.
|
CommandLine.Model.CommandSpec |
CommandLine.IModelTransformer.transform(CommandLine.Model.CommandSpec commandSpec) |
Given an original CommandSpec, return the object that should be used
instead.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.usageMessage(CommandLine.Model.UsageMessageSpec settings) |
Initializes the usageMessage specification for this command from the specified settings and returns this commandSpec.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.version(String... version) |
Sets version information literals for this command, to print to the console when the user specifies an
option to request version help.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.versionProvider(CommandLine.IVersionProvider versionProvider) |
Sets version provider for this command, to generate the version() strings.
|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.withToString(String newValue) |
Sets the string representation of this command, used in error messages and trace messages.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.wrapWithoutInspection(Object userObject) |
Creates and returns a new CommandSpec with the specified associated user object.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.wrapWithoutInspection(Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec with the specified associated user object.
|