Class MachineArchitecture

java.lang.Object
org.gradle.nativeplatform.MachineArchitecture
All Implemented Interfaces:
Named

public abstract class MachineArchitecture extends Object implements Named
Represents a target architecture of a component. Typical architectures include "x86" and "x86-64".
Since:
5.1
  • Field Details

  • Constructor Details

    • MachineArchitecture

      public MachineArchitecture()
  • Method Details

    • getName

      @Input public abstract String getName()
      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.