Package: org.gradle.platform.base

## [Java] Interface BinarySpec

- org.gradle.api.BuildableComponentSpec

- All Superinterfaces:
    ModelElement, ComponentSpec, Named, Buildable, BuildableComponentSpec

  Represents a binary that is the result of building a component.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `DomainObjectSet<LanguageSourceSet>` | `getInputs()` Returns all inputs of the binary.
    `ModelMap<LanguageSourceSet>` | `getSources()` The sources owned by this binary.
    `BinaryTasksCollection` | `getTasks()` The set of tasks associated with this binary.
    `boolean` | `isBuildable()` Can this binary be built in the current environment?

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface BuildableComponentSpec` | `builtBy, getBuildTask, hasBuildDependencies, setBuildTask`
    `interface Buildable` | `getBuildDependencies`
    `interface ComponentSpec` | `getProjectPath`
    `interface ModelElement` | `getDisplayName, getName`
    `interface Named` | `getName`

- - ### Method Detail

    - #### public DomainObjectSet<LanguageSourceSet> getInputs()

      Returns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component).

      Returns:
        all inputs of the binary.

    - #### public ModelMap<LanguageSourceSet> getSources()

      The sources owned by this binary.

      Returns:
        the sources owned by the binary.

    - #### public BinaryTasksCollection getTasks()

      The set of tasks associated with this binary.

    - #### public boolean isBuildable()

      Can this binary be built in the current environment?