Enum Class InternalResource.OS

java.lang.Object
java.lang.Enum<InternalResource.OS>
com.oracle.truffle.api.InternalResource.OS
All Implemented Interfaces:
Serializable, Comparable<InternalResource.OS>, Constable
Enclosing interface:
InternalResource

public static enum InternalResource.OS extends Enum<InternalResource.OS>
Represents a supported operating system.
Since:
23.1
  • Enum Constant Details

    • DARWIN

      public static final InternalResource.OS DARWIN
      The macOS operating system.
      Since:
      23.1
    • LINUX

      public static final InternalResource.OS LINUX
      The Linux operating system.
      Since:
      23.1
    • WINDOWS

      public static final InternalResource.OS WINDOWS
      The Windows operating system.
      Since:
      23.1
  • Method Details

    • values

      public static InternalResource.OS[] 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

      public static InternalResource.OS valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Returns the string representing operating system name.
      Overrides:
      toString in class Enum<InternalResource.OS>
      Since:
      23.1
    • getCurrent

      public static InternalResource.OS getCurrent()
      Returns the current operating system.
      Since:
      23.1