Enum Targets
- java.lang.Object
-
- java.lang.Enum<Targets>
-
- com.dslplatform.compiler.client.parameters.Targets
-
- All Implemented Interfaces:
CompileParameter,ParameterParser,java.io.Serializable,java.lang.Comparable<Targets>
public enum Targets extends java.lang.Enum<Targets> implements CompileParameter, ParameterParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTargets.Option
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCACHE_NAMEprivate static java.lang.String[]DOTNET_CLIENT_DEPENDENCIESprivate static java.lang.String[]DOTNET_WPF_DEPENDENCIES
-
Constructor Summary
Constructors Modifier Constructor Description privateTargets()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(Context context)private voidcompile(Context context, java.util.List<Targets.Option> targets)java.lang.StringgetAlias()java.lang.StringgetDetailedDescription()java.lang.StringgetShortDescription()static java.lang.StringgetTargetSourcePath(Context context, boolean sourceOnly, Targets.Option target)java.lang.StringgetUsage()private static voidlistOptions(Context context)private static voidremoveUnusedFiles(Context context, java.io.File folder, java.util.HashSet<java.io.File> usedFiles)voidrun(Context context)private static java.io.FilesaveFile(Context context, java.lang.String temp, boolean escapeName, java.lang.String name, java.lang.String content)private static voidsetupFolder(Context context, java.io.File path, int retry)Either<java.lang.Boolean>tryParse(java.lang.String name, java.lang.String value, Context context)static TargetsvalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Targets INSTANCE
-
-
Field Detail
-
DOTNET_CLIENT_DEPENDENCIES
private static final java.lang.String[] DOTNET_CLIENT_DEPENDENCIES
-
DOTNET_WPF_DEPENDENCIES
private static final java.lang.String[] DOTNET_WPF_DEPENDENCIES
-
CACHE_NAME
private static final java.lang.String CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Targets[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Targets c : Targets.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Targets valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAlias
public java.lang.String getAlias()
- Specified by:
getAliasin interfaceCompileParameter
-
getUsage
public java.lang.String getUsage()
- Specified by:
getUsagein interfaceCompileParameter
-
listOptions
private static void listOptions(Context context)
-
tryParse
public Either<java.lang.Boolean> tryParse(java.lang.String name, java.lang.String value, Context context)
- Specified by:
tryParsein interfaceParameterParser
-
check
public boolean check(Context context) throws ExitException
- Specified by:
checkin interfaceCompileParameter- Throws:
ExitException
-
run
public void run(Context context) throws ExitException
- Specified by:
runin interfaceCompileParameter- Throws:
ExitException
-
getTargetSourcePath
public static java.lang.String getTargetSourcePath(Context context, boolean sourceOnly, Targets.Option target) throws ExitException
- Throws:
ExitException
-
compile
private void compile(Context context, java.util.List<Targets.Option> targets) throws ExitException
- Throws:
ExitException
-
removeUnusedFiles
private static void removeUnusedFiles(Context context, java.io.File folder, java.util.HashSet<java.io.File> usedFiles) throws ExitException
- Throws:
ExitException
-
setupFolder
private static void setupFolder(Context context, java.io.File path, int retry) throws ExitException
- Throws:
ExitException
-
saveFile
private static java.io.File saveFile(Context context, java.lang.String temp, boolean escapeName, java.lang.String name, java.lang.String content) throws ExitException, java.io.IOException
- Throws:
ExitExceptionjava.io.IOException
-
getShortDescription
public java.lang.String getShortDescription()
- Specified by:
getShortDescriptionin interfaceCompileParameter
-
getDetailedDescription
public java.lang.String getDetailedDescription()
- Specified by:
getDetailedDescriptionin interfaceCompileParameter
-
-