Package com.oracle.truffle.api
Enum Class InternalResource.CPUArchitecture
java.lang.Object
java.lang.Enum<InternalResource.CPUArchitecture>
com.oracle.truffle.api.InternalResource.CPUArchitecture
- All Implemented Interfaces:
Serializable
,Comparable<InternalResource.CPUArchitecture>
,Constable
- Enclosing interface:
InternalResource
Represents a supported CPU architecture.
- Since:
- 23.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current CPU architecture.toString()
Returns the string representing CPU architecture name.Returns the enum constant of this class with the specified name.static InternalResource.CPUArchitecture[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AARCH64
The ARMv8 64-bit architecture.- Since:
- 23.1
-
AMD64
The x86 64-bit architecture.- Since:
- 23.1
-
-
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 the string representing CPU architecture name.- Overrides:
toString
in classEnum<InternalResource.CPUArchitecture>
- Since:
- 23.1
-
getCurrent
Returns the current CPU architecture.- Since:
- 23.1
-