Package picocli
Class CommandLine.Model
- java.lang.Object
-
- picocli.CommandLine.Model
-
- Enclosing class:
- CommandLine
public static final class CommandLine.Model extends java.lang.Object
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 Classes Modifier and Type Class Description static class
CommandLine.Model.ArgGroupSpec
TheArgGroupSpec
class models agroup
of arguments (options, positional parameters or a mixture of the two).static class
CommandLine.Model.ArgSpec
Models the shared attributes ofCommandLine.Model.OptionSpec
andCommandLine.Model.PositionalParamSpec
.(package private) static class
CommandLine.Model.CaseAwareLinkedMap<K,V>
This class provides a case-aware Linked HashMap.private static class
CommandLine.Model.CommandReflection
static class
CommandLine.Model.CommandSpec
TheCommandSpec
class 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
CommandLine.Model.CommandUserObject
(package private) static class
CommandLine.Model.FieldBinding
static interface
CommandLine.Model.IAnnotatedElement
Internal interface to allow annotation processors to construct a command model at compile time.static interface
CommandLine.Model.IExtensible
Interface to allow extending the capabilities of other interface without Java 8 default methods.static interface
CommandLine.Model.IGetter
Customizable getter for obtaining the current value of an option or positional parameter.(package private) static class
CommandLine.Model.InitialValueState
(package private) static class
CommandLine.Model.Interpolator
static interface
CommandLine.Model.IOrdered
static interface
CommandLine.Model.IScope
The scope of a getter/setter binding is the context where the current value should be gotten from or set to.static interface
CommandLine.Model.ISetter
Customizable setter for modifying the value of an option or positional parameter.static interface
CommandLine.Model.ITypeInfo
Encapculates type information for an option or parameter to make this information available both at runtime and at compile time (whenClass
values are not available).static class
CommandLine.Model.Messages
Utility class for getting resource bundle strings.(package private) static class
CommandLine.Model.MethodBinding
static class
CommandLine.Model.MethodParam
Command method parameter, similar to java.lang.reflect.Parameter (not available before Java 8).private static class
CommandLine.Model.ObjectBinding
(package private) static class
CommandLine.Model.ObjectScope
static class
CommandLine.Model.OptionSpec
TheOptionSpec
class 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 class
CommandLine.Model.ParserSpec
Models parser configuration specification.private static class
CommandLine.Model.PicocliInvocationHandler
static class
CommandLine.Model.PositionalParamSpec
ThePositionalParamSpec
class 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
CommandLine.Model.Predicate<T>
(package private) static class
CommandLine.Model.RuntimeTypeInfo
(package private) static class
CommandLine.Model.TypedMember
static class
CommandLine.Model.UnmatchedArgsBinding
This class allows applications to specify a custom binding that will be invoked for unmatched arguments.static class
CommandLine.Model.UsageMessageSpec
Models the usage help message specification and can be used to customize the usage help message.
-
Constructor Summary
Constructors Modifier Constructor Description private
Model()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
initializable(java.lang.Object current, java.lang.Object[] candidate, java.lang.Object[] defaultValue)
private static boolean
initializable(java.lang.Object current, java.lang.Object candidate, java.lang.Object defaultValue)
private static boolean
isNonDefault(java.lang.Object[] candidate, java.lang.Object[] defaultValue)
private static boolean
isNonDefault(java.lang.Object candidate, java.lang.Object defaultValue)
-
-
-
Method Detail
-
initializable
private static boolean initializable(java.lang.Object current, java.lang.Object candidate, java.lang.Object defaultValue)
-
initializable
private static boolean initializable(java.lang.Object current, java.lang.Object[] candidate, java.lang.Object[] defaultValue)
-
isNonDefault
private static boolean isNonDefault(java.lang.Object candidate, java.lang.Object defaultValue)
-
isNonDefault
private static boolean isNonDefault(java.lang.Object[] candidate, java.lang.Object[] defaultValue)
-
-