Interface AccessTransformersContainer

All Known Subinterfaces:
AccessTransformersExtension

public sealed interface AccessTransformersContainer permits AccessTransformersExtension (not exhaustive)

Represents a container of dependencies that will be access transformed.

Containers are created with AccessTransformersExtension.register(Action). Dependencies can be registered to it inside their configuring closures using configure(java.lang.Object).

See Also:
API Note:
This interface is effectively sealed and must not be extended.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    When initially registering an AccessTransformers container, the consumer should define key information regarding how AccessTransformers will be used.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    configure(Object dependency)
    Configures the given dependency to use this AccessTransformers container.
    void
    configure(Object dependency, org.gradle.api.Action<? super AccessTransformersConfiguration> action)
    Configures the given dependency to use this AccessTransformers container.
    Gets the access transformer options.
    default void
    options(org.gradle.api.Action<? super AccessTransformersContainer.Options> action)
    Configures the access transformer options.
  • Method Details

    • getOptions

      Gets the access transformer options.
      Returns:
      The options
      See Also:
    • options

      default void options(org.gradle.api.Action<? super AccessTransformersContainer.Options> action)
      Configures the access transformer options.
      Parameters:
      action - The configuring action
      See Also:
    • configure

      default void configure(Object dependency)
      Configures the given dependency to use this AccessTransformers container.
      Parameters:
      dependency - The dependency to configure AccessTransformers for
    • configure

      void configure(Object dependency, org.gradle.api.Action<? super AccessTransformersConfiguration> action)
      Configures the given dependency to use this AccessTransformers container.
      Parameters:
      dependency - The dependency to configure AccessTransformers for
      action - A configuring action to modify dependency-level AccessTransformer options