Enum Platform

  • All Implemented Interfaces:
    Serializable, Comparable<Platform>

    public enum Platform
    extends Enum<Platform>
    Platform on which Buck is currently running. Limited to the OS kind, e.g. Windows or a kind of Unix (MACOS, LINUX, ...).
    • Enum Constant Detail

      • LINUX

        public static final Platform LINUX
      • MACOS

        public static final Platform MACOS
      • WINDOWS

        public static final Platform WINDOWS
      • FREEBSD

        public static final Platform FREEBSD
      • UNKNOWN

        public static final Platform UNKNOWN
    • Method Detail

      • values

        public static Platform[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Platform c : Platform.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Platform valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getAutoconfName

        public String getAutoconfName()
        platform name as used in autoconf target tuples
      • getPrintableName

        public String getPrintableName()
      • getCanonicalName

        public String getCanonicalName()
      • getNullDevicePath

        public Path getNullDevicePath()
        Return a path to a special file which accepts reads (always returning EOF) and writes (accepts and immediately discards written data). E.g /dev/null on Unix and NUL on Windows.
      • detect

        public static Platform detect()