Package picocli
Class CommandLine.Model
java.lang.Object
picocli.CommandLine.Model
- Enclosing class:
CommandLine
This class provides a namespace for classes and interfaces that model concepts and attributes of command line interfaces in picocli.
- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheArgGroupSpecclass models agroupof arguments (options, positional parameters or a mixture of the two).static classModels the shared attributes ofCommandLine.Model.OptionSpecandCommandLine.Model.PositionalParamSpec.(package private) static classThis class provides a case-aware Linked HashMap.private static classstatic classTheCommandSpecclass models a command specification, including the options, positional parameters and subcommands supported by the command, as well as attributes for the version help message and the usage help message of the command.(package private) static class(package private) static classstatic interfaceInternal interface to allow annotation processors to construct a command model at compile time.static interfaceInterface to allow extending the capabilities of other interface without Java 8 default methods.static interfaceCustomizable getter for obtaining the current value of an option or positional parameter.(package private) static enum(package private) static classstatic interfacestatic interfaceThe scope of a getter/setter binding is the context where the current value should be gotten from or set to.static interfaceThis interface provides access to anCommandLine.Model.IScopeinstance.static interfaceCustomizable setter for modifying the value of an option or positional parameter.static interfaceEncapculates type information for an option or parameter to make this information available both at runtime and at compile time (whenClassvalues are not available).static classUtility class for getting resource bundle strings.(package private) static classstatic classCommand method parameter, similar to java.lang.reflect.Parameter (not available before Java 8).private static class(package private) static classstatic classTheOptionSpecclass models aspects of a named option of a command, including whether it is required or optional, the option parameters supported (or required) by the option, and attributes for the usage help message describing the option.static classModels parser configuration specification.private static classstatic classThePositionalParamSpecclass models aspects of a positional parameter of a command, including whether it is required or optional, and attributes for the usage help message describing the positional parameter.private static interface(package private) static class(package private) static classstatic classThis class allows applications to specify a custom binding that will be invoked for unmatched arguments.static classModels the usage help message specification and can be used to customize the usage help message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleaninitializable(Object current, Object[] candidate, Object[] defaultValue) private static booleaninitializable(Object current, Object candidate, Object defaultValue) private static booleanisNonDefault(Object[] candidate, Object[] defaultValue) private static booleanisNonDefault(Object candidate, Object defaultValue)
-
Constructor Details
-
Model
private Model()
-
-
Method Details
-
initializable
-
initializable
-
isNonDefault
-
isNonDefault
-