Package jnr.ffi
Enum Class Platform.CPU
- All Implemented Interfaces:
Serializable
,Comparable<Platform.CPU>
,Constable
- Enclosing class:
- Platform
The supported CPU architectures.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription64 bit ARM32 bit ARM32 bit legacy Intel32 bit MIPS (used by nestedvm)64 bit MIPS32 bit Power PC64 bit Power PC64 bit Power PC little endianIBM zSeries S/39032 bit Sun sparc64 bit Sun sparcUnknown CPU architecture.64 bit AMD (aka EM64T/X64) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns aString
object representing thisCPU
object.static Platform.CPU
Returns the enum constant of this class with the specified name.static Platform.CPU[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
I386
32 bit legacy Intel -
X86_64
64 bit AMD (aka EM64T/X64) -
PPC
32 bit Power PC -
PPC64
64 bit Power PC -
PPC64LE
64 bit Power PC little endian -
SPARC
32 bit Sun sparc -
SPARCV9
64 bit Sun sparc -
S390X
IBM zSeries S/390 -
MIPS32
32 bit MIPS (used by nestedvm) -
ARM
32 bit ARM -
AARCH64
64 bit ARM -
MIPS64EL
64 bit MIPS -
UNKNOWN
Unknown CPU architecture. A best effort will be made to infer architecture specific values such as address and long size.
-
-
Constructor Details
-
CPU
private CPU()
-
-
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
-
toString
Returns aString
object representing thisCPU
object.- Overrides:
toString
in classEnum<Platform.CPU>
- Returns:
- the name of the cpu architecture as a lower case
String
.
-