Package ghidra.framework
Enum Platform
- java.lang.Object
-
- java.lang.Enum<Platform>
-
- ghidra.framework.Platform
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINUXDeprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_32instead.LINUX_64Deprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_64instead.LINUX_ARM_64Identifies a Linux ARM 64-bit OS.LINUX_UKNOWNDeprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedLINUX_X86_32Identifies a Linux x86 32-bit OS.LINUX_X86_64Identifies a Linux x86 64-bit OS.MAC_ARM_64Identifies a macOS ARM 64-bit OS.MAC_OSX_32Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_OSX_32instead.MAC_OSX_64Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64instead.MAC_UNKNOWNDeprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64instead.MAC_X86_32Identifies a macOS x86 32-bit OS.MAC_X86_64Identifies a macOS x86 64-bit OS.UNSUPPORTEDIdentifies an unsupported OS.WIN_64Deprecated, for removal: This API element is subject to removal in a future version.UseWIN_X86_64instead.WIN_UNKOWNDeprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedWIN_X86_32Identifies a Windows x86 32-bit OS.WIN_X86_64Identifies a Windows x86 64-bit OS.
-
Field Summary
Fields Modifier and Type Field Description static PlatformCURRENT_PLATFORMA constant identifying the current platform.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAdditionalLibraryPaths()Based on the current platform, returns an operating system specific library paths that are not found on the PATH environment variable.ArchitecturegetArchitecture()Returns the architecture for this platform.java.lang.StringgetDirectoryName()Returns the directory name of the current platform.java.lang.StringgetExecutableExtension()java.lang.StringgetLibraryExtension()Returns the library extension for this platform.OperatingSystemgetOperatingSystem()Returns the operating system for this platform.java.lang.StringtoString()static PlatformvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Platform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WIN_X86_32
public static final Platform WIN_X86_32
Identifies a Windows x86 32-bit OS.
-
WIN_X86_64
public static final Platform WIN_X86_64
Identifies a Windows x86 64-bit OS.
-
LINUX_X86_32
public static final Platform LINUX_X86_32
Identifies a Linux x86 32-bit OS.
-
LINUX_X86_64
public static final Platform LINUX_X86_64
Identifies a Linux x86 64-bit OS.
-
LINUX_ARM_64
public static final Platform LINUX_ARM_64
Identifies a Linux ARM 64-bit OS.
-
MAC_X86_32
public static final Platform MAC_X86_32
Identifies a macOS x86 32-bit OS.
-
MAC_X86_64
public static final Platform MAC_X86_64
Identifies a macOS x86 64-bit OS.
-
MAC_ARM_64
public static final Platform MAC_ARM_64
Identifies a macOS ARM 64-bit OS.
-
UNSUPPORTED
public static final Platform UNSUPPORTED
Identifies an unsupported OS.
-
WIN_64
@Deprecated(since="10.1", forRemoval=true) public static final Platform WIN_64Deprecated, for removal: This API element is subject to removal in a future version.UseWIN_X86_64instead.Identifies a Windows 64-bit OS.
-
WIN_UNKOWN
@Deprecated(since="10.1", forRemoval=true) public static final Platform WIN_UNKOWNDeprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedIdentifies a Windows OS, the architecture for which we do not know or have not encountered. We'll treat it asWIN_X86_64and hope for the best.
-
LINUX
@Deprecated(since="10.1", forRemoval=true) public static final Platform LINUXDeprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_32instead.Identifies a Linux X86 32-bit OS.
-
LINUX_64
@Deprecated(since="10.1", forRemoval=true) public static final Platform LINUX_64Deprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_64instead.Identifies a Linux X86 64-bit OS.
-
LINUX_UKNOWN
@Deprecated(since="10.1", forRemoval=true) public static final Platform LINUX_UKNOWNDeprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedIdentifies a Linux OS, the architecture for which we do not know or have not encountered. We'll treat it asLINUX_X86_64and hope for the best.
-
MAC_OSX_32
@Deprecated(since="10.1", forRemoval=true) public static final Platform MAC_OSX_32Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_OSX_32instead.Identifies a macOS X86 32-bit OS.
-
MAC_OSX_64
@Deprecated(since="10.1", forRemoval=true) public static final Platform MAC_OSX_64Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64instead.Identifies a macOS X86 64-bit OS.
-
MAC_UNKNOWN
@Deprecated(since="10.1", forRemoval=true) public static final Platform MAC_UNKNOWNDeprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64instead.Identifies a macOS OS, the architecture for which we do not know or have not encountered. We'll treat it asMAC_X86_64and hope for the best.
-
-
Field Detail
-
CURRENT_PLATFORM
public static final Platform CURRENT_PLATFORM
A constant identifying the current platform.
-
-
Method Detail
-
values
public static Platform[] 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 (Platform c : Platform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Platform 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
-
getOperatingSystem
public OperatingSystem getOperatingSystem()
Returns the operating system for this platform.- Returns:
- the operating system for this platform
-
getArchitecture
public Architecture getArchitecture()
Returns the architecture for this platform.- Returns:
- the architecture for this platform
-
getDirectoryName
public java.lang.String getDirectoryName()
Returns the directory name of the current platform.- Returns:
- the directory name of the current platform
-
getLibraryExtension
public java.lang.String getLibraryExtension()
Returns the library extension for this platform.- Returns:
- the library extension for this platform
-
getAdditionalLibraryPaths
public java.util.List<java.lang.String> getAdditionalLibraryPaths()
Based on the current platform, returns an operating system specific library paths that are not found on the PATH environment variable.- Returns:
- additional library paths
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Platform>
-
getExecutableExtension
public java.lang.String getExecutableExtension()
-
-