public static enum CommandLine.Spec.Target extends Enum<CommandLine.Spec.Target>
CommandSpec
should be injected.Enum Constant and Description |
---|
MIXEE
Injects the
CommandSpec of the "mixee" command that receives the options and other command elements defined here,
or null if this commands is not mixed into another command. |
SELF
Injects the
CommandSpec of the command where this @Spec -annotated program element is declared. |
Modifier and Type | Method and Description |
---|---|
static CommandLine.Spec.Target |
valueOf(String name)
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.
|
public static final CommandLine.Spec.Target SELF
CommandSpec
of the command where this @Spec
-annotated program element is declared.public static final CommandLine.Spec.Target MIXEE
CommandSpec
of the "mixee" command that receives the options and other command elements defined here,
or null
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.public static CommandLine.Spec.Target[] values()
for (CommandLine.Spec.Target c : CommandLine.Spec.Target.values()) System.out.println(c);
public static CommandLine.Spec.Target valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null