java.lang.Object
java.lang.Enum<Arch>
org.standardout.gradle.plugin.platform.internal.osdetect.Arch
All Implemented Interfaces:
Serializable, Comparable<Arch>, Constable

public enum Arch extends Enum<Arch>
Enum for handling different processor architectures supported by SWT.
  • Enum Constant Details

    • x86

      public static final Arch x86
    • x64

      public static final Arch x64
  • Method Details

    • values

      public static Arch[] 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 Arch 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
    • x86x64

      public <T> T x86x64(T val86, T val64)
      Returns the appropriate value depending on the arch.
    • getNative

      public static Arch getNative()
      Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x64.
    • getRunning

      public static Arch getRunning()
      Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x86.
    • unsupportedException

      public static UnsupportedOperationException unsupportedException(Arch arch)
      Returns an UnsupportedOperationException for the given arch.