Package org.gradle.api.artifacts.transform

## Interface TransformAction<T extends TransformParameters>

- Type Parameters:
    `T` - Parameter type for the transform action. Should be `TransformParameters.None` if the action does not have parameters.

      @Incubating
      public interface TransformAction<T extends TransformParameters>

  Interface for artifact transform actions.

  Implementations must provide a public constructor.

  Implementations can receive parameters by using annotated abstract getter methods.

  A property annotated with `InputArtifact` will receive the input artifact location, which is the file or directory that the transform should be applied to.

  A property annotated with `InputArtifactDependencies` will receive the dependencies of its input artifact.

  Since:
    5.3

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `getParameters()` | The object provided by `TransformSpec.getParameters()`.
    `void` | `transform​(TransformOutputs outputs)` | Executes the transform.

- - ### Method Detail

    - #### getParameters

          @Inject
          T getParameters()

      The object provided by `TransformSpec.getParameters()`.

    - #### transform

          void transform​(TransformOutputs outputs)

      Executes the transform.
      Parameters:
        `outputs` - Receives the outputs of the transform.