public enum Targets extends Enum<Targets> implements CompileParameter, ParameterParser
| Modifier and Type | Class and Description |
|---|---|
static class |
Targets.Option |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Context context) |
String |
getAlias() |
String |
getDetailedDescription() |
String |
getShortDescription() |
static String |
getTargetSourcePath(Context context,
boolean sourceOnly,
Targets.Option target) |
String |
getUsage() |
void |
run(Context context) |
Either<Boolean> |
tryParse(String name,
String value,
Context context) |
static Targets |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Targets[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Targets INSTANCE
public static Targets[] values()
for (Targets c : Targets.values()) System.out.println(c);
public static Targets 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 nullpublic String getAlias()
getAlias in interface CompileParameterpublic String getUsage()
getUsage in interface CompileParameterpublic Either<Boolean> tryParse(String name, String value, Context context)
tryParse in interface ParameterParserpublic boolean check(Context context) throws ExitException
check in interface CompileParameterExitExceptionpublic void run(Context context) throws ExitException
run in interface CompileParameterExitExceptionpublic static String getTargetSourcePath(Context context, boolean sourceOnly, Targets.Option target) throws ExitException
ExitExceptionpublic String getShortDescription()
getShortDescription in interface CompileParameterpublic String getDetailedDescription()
getDetailedDescription in interface CompileParameterCopyright © 2021. All rights reserved.