Package ghidra.framework
Enum Class Platform
- All Implemented Interfaces:
Serializable
,Comparable<Platform>
,Constable
Identifies the current platform (operating system and architecture) and
identifies the appropriate module OS directory which contains native binaries
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIdentifies a FreeBSD ARM 64-bit OS.Identifies a FreeBSD x86 64-bit OS.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_64
instead.Identifies a Linux ARM 64-bit OS.Deprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedIdentifies a Linux x86 32-bit OS.Identifies a Linux x86 64-bit OS.Identifies a macOS ARM 64-bit OS.Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_OSX_32
instead.Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64
instead.Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64
instead.Identifies a macOS x86 32-bit OS.Identifies a macOS x86 64-bit OS.Identifies an unsupported OS.Deprecated, for removal: This API element is subject to removal in a future version.UseWIN_X86_64
instead.Identifies a Windows ARM 64-bit OS.Deprecated, for removal: This API element is subject to removal in a future version.Unknown architectures are not supportedIdentifies a Windows x86 32-bit OS.Identifies a Windows x86 64-bit OS. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Platform
A constant identifying the current platform. -
Method Summary
Modifier and TypeMethodDescriptionBased on the current platform, returns an operating system specific library paths that are not found on the PATH environment variable.Returns the architecture for this platform.Returns the directory name of the current platform.Returns the library extension for this platform.Returns the operating system for this platform.toString()
static Platform
Returns the enum constant of this class with the specified name.static Platform[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIN_X86_32
Identifies a Windows x86 32-bit OS. -
WIN_X86_64
Identifies a Windows x86 64-bit OS. -
WIN_ARM_64
Identifies a Windows ARM 64-bit OS. -
LINUX_X86_32
Identifies a Linux x86 32-bit OS. -
LINUX_X86_64
Identifies a Linux x86 64-bit OS. -
LINUX_ARM_64
Identifies a Linux ARM 64-bit OS. -
MAC_X86_32
Identifies a macOS x86 32-bit OS. -
MAC_X86_64
Identifies a macOS x86 64-bit OS. -
MAC_ARM_64
Identifies a macOS ARM 64-bit OS. -
FREEBSD_X86_64
Identifies a FreeBSD x86 64-bit OS. -
FREEBSD_ARM_64
Identifies a FreeBSD ARM 64-bit OS. -
UNSUPPORTED
Identifies an unsupported OS. -
WIN_64
Deprecated, for removal: This API element is subject to removal in a future version.UseWIN_X86_64
instead.Identifies a Windows 64-bit OS. -
WIN_UNKOWN
Deprecated, 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_64
and hope for the best. -
LINUX
Deprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_32
instead.Identifies a Linux X86 32-bit OS. -
LINUX_64
Deprecated, for removal: This API element is subject to removal in a future version.UseLINUX_X86_64
instead.Identifies a Linux X86 64-bit OS. -
LINUX_UKNOWN
Deprecated, 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_64
and hope for the best. -
MAC_OSX_32
Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_OSX_32
instead.Identifies a macOS X86 32-bit OS. -
MAC_OSX_64
Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64
instead.Identifies a macOS X86 64-bit OS. -
MAC_UNKNOWN
Deprecated, for removal: This API element is subject to removal in a future version.UseMAC_X86_64
instead.Identifies a macOS OS, the architecture for which we do not know or have not encountered. We'll treat it asMAC_X86_64
and hope for the best.
-
-
Field Details
-
CURRENT_PLATFORM
A constant identifying the current platform.
-
-
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
-
getOperatingSystem
Returns the operating system for this platform.- Returns:
- the operating system for this platform
-
getArchitecture
Returns the architecture for this platform.- Returns:
- the architecture for this platform
-
getDirectoryName
Returns the directory name of the current platform.- Returns:
- the directory name of the current platform
-
getLibraryExtension
Returns the library extension for this platform.- Returns:
- the library extension for this platform
-
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
-
getExecutableExtension
-
LINUX_X86_32
instead.