Package picocli
Enum CommandLine.Spec.Target
- All Implemented Interfaces:
Serializable
,Comparable<CommandLine.Spec.Target>
,java.lang.constant.Constable
- Enclosing class:
- CommandLine.Spec
Identifies what kind of
CommandSpec
should be injected.- Since:
- 4.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInjects theCommandSpec
of the "mixee" command that receives the options and other command elements defined here, ornull
if this commands is not mixed into another command.Injects theCommandSpec
of the command where this@Spec
-annotated program element is declared. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandLine.Spec.Target
Returns the enum constant of this type with the specified name.static CommandLine.Spec.Target[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SELF
Injects theCommandSpec
of the command where this@Spec
-annotated program element is declared. -
MIXEE
Injects theCommandSpec
of the "mixee" command that receives the options and other command elements defined here, ornull
if this commands is not mixed into another command. The "mixee" command has a@Mixin
-annotated program element with the type of the class where this@Spec
-annotated program element is declared.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-