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 Enum
Enum.EnumDesc<E>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ARMv8 64-bit architecture.The x86 64-bit architecture.Represents an unsupported architecture. -
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
-
UNSUPPORTED
Represents an unsupported architecture.To enable execution on unsupported platforms, the system property
-Dpolyglot.engine.allowUnsupportedPlatform=true
must be explicitly set. If this property is not set and the platform is unsupported, thegetCurrent()
method will throw anIllegalStateException
.- Since:
- 26.0
-
-
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
-