Interface Architecture

All Superinterfaces:
Named

public interface Architecture extends Named
A CPU architecture.
Values
Instruction Set 32-bit names 64-bit names
Intel x86 "x86", "i386", "ia-32", "i686" "x86_64", "amd64", "x64", "x86-64"
Intel Itanium N/A "ia-64", "ia64"
Power PC "ppc" "ppc64"
Sparc "sparc", "sparc32", "sparc-v8" "sparc64", "ultrasparc", "sparc-v9"
ARM "arm", "arm-v7", "armv7", "arm32" "aarch64", "arm64", "arm-v8"
MCST e2k (Elbrus-2000) N/A "e2k"
Since:
2.2
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Named

    Named.Namer
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a human-consumable display name for this architecture.
    The object's name.
  • Method Details

    • getName

      @Input String getName()
      Description copied from interface: Named
      The object's name.

      Must be constant for the life of the object.

      Implementations should not declare a Object.toString() that returns anything other than this name. Gradle derives the name from this method wherever it needs one, but renders the object with toString() in diagnostics, so the two disagreeing produces output that contradicts the behavior it describes. This is easy to miss on an enum, which inherits a toString() returning Enum.name().

      Specified by:
      getName in interface Named
      Returns:
      The name. Never null.
    • getDisplayName

      @Internal String getDisplayName()
      Returns a human-consumable display name for this architecture.
      Since:
      2.2