public enum Architecture extends Enum<Architecture>
| Enum Constant and Description |
|---|
Linux_aarch64
ARM64.
|
Linux_armv6hf
raspberry pi (arm 32).
|
Linux_x86_64
amd64.
|
macOS_x86_64
macosx on intel.
|
unsupported
none of the above.
|
Windows_x86
win32.
|
| Modifier and Type | Method and Description |
|---|---|
static Architecture |
detect()
Detects the current architecture on which the plugin is being run.
|
URL |
downloadUrl() |
String |
embeddedBinPath() |
String |
idiomaticExecutableSuffix() |
boolean |
isUnixLike() |
void |
makeExecutable(Path path)
Makes the given path executable (for unices, for windows does nothing).
|
static String |
osArchKey()
Returns the currently os/arch key identifier.
|
static Architecture |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Architecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Architecture Linux_x86_64
public static final Architecture Linux_armv6hf
public static final Architecture Linux_aarch64
public static final Architecture macOS_x86_64
public static final Architecture Windows_x86
public static final Architecture unsupported
public static Architecture[] values()
for (Architecture c : Architecture.values()) System.out.println(c);
public static Architecture 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 static String osArchKey()
public static Architecture detect()
public String embeddedBinPath()
public boolean isUnixLike()
public URL downloadUrl()
public void makeExecutable(Path path) throws IOException
path - the path to make executable.IOException - if something goes wrong.public String idiomaticExecutableSuffix()
Copyright © 2020–2023 Marco Nicolini. All rights reserved.