Enum Class Download
- All Implemented Interfaces:
CompileParameter, Serializable, Comparable<Download>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleanstatic longdownloadAndUnpack(Context context, String file, File path) private static booleandownloadLibrary(Context context, String name, String path, File dependencies, Either<String> tryMaven, String library, String zip) static booleandownloadZip(File dependencies, Context context, String name, String zip) getAlias()getUsage()static booleanisDefaultUrl(Context context) lastModified(Context context, String file, String name, long current) private static booleanpromptForAlternative(File dependencies, Context context, String name, String zip) static Stringvoidstatic DownloadReturns the enum constant of this class with the specified name.static Download[]values()Returns an array containing the constants of this enum class, in the order they are declared.private static StringwebsiteName(Context context)
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
DEFAULT_REMOTE_URL
- See Also:
-
-
Constructor Details
-
Download
private Download()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getAlias
- Specified by:
getAliasin interfaceCompileParameter
-
getUsage
- Specified by:
getUsagein interfaceCompileParameter
-
remoteUrl
-
isDefaultUrl
-
websiteName
-
downloadAndUnpack
- Throws:
IOException
-
lastModified
-
downloadZip
-
promptForAlternative
private static boolean promptForAlternative(File dependencies, Context context, String name, String zip) throws ExitException - Throws:
ExitException
-
checkJars
public static boolean checkJars(Context context, String name, String zip, String id, String path, String... libraries) throws ExitException - Throws:
ExitException
-
downloadLibrary
private static boolean downloadLibrary(Context context, String name, String path, File dependencies, Either<String> tryMaven, String library, String zip) throws ExitException - Throws:
ExitException
-
check
- Specified by:
checkin interfaceCompileParameter
-
run
- Specified by:
runin interfaceCompileParameter
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceCompileParameter
-
getDetailedDescription
- Specified by:
getDetailedDescriptionin interfaceCompileParameter
-