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(Attribute, Action). Dependencies can be added using dep(Object, Closure).

See Also:
API Note:
This interface is effectively sealed and must not be extended.
  • Method Details

    • register

      static AccessTransformersContainer register(Project project, Attribute<Boolean> attribute, Action<? super AccessTransformersContainer.Options> options)
      Registers a new container using the given attribute and options.
      Parameters:
      project - The project to make the container for
      attribute - The boolean attribute to use for this container
      options - The options to apply
      Returns:
      The registered container
      See Also:
    • getAttribute

      Attribute<Boolean> getAttribute()
      Gets the attribute used by the transformer. It must be unique to this container.
      Returns:
      The attribute
      See Also:
    • options

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

      Dependency dep(Object dependencyNotation, @DelegatesTo(Dependency.class) Closure closure)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      closure - A configuring closure for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(Object dependencyNotation, Action<? super Dependency> action)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      action - A configuring action for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(Object dependencyNotation)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(Provider<?> dependencyNotation, @DelegatesTo(Dependency.class) Closure closure)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      closure - A configuring closure for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(Provider<?> dependencyNotation, Action<? super Dependency> action)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      action - A configuring action for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(Provider<?> dependencyNotation)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(ProviderConvertible<?> dependencyNotation, @DelegatesTo(Dependency.class) Closure closure)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      closure - A configuring closure for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(ProviderConvertible<?> dependencyNotation, Action<? super Dependency> action)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      action - A configuring action for the dependency
      Returns:
      The dependency to be transformed
    • dep

      default Dependency dep(ProviderConvertible<?> dependencyNotation)
      Queues the given dependency to be transformed by AccessTransformers.
      Parameters:
      dependencyNotation - The dependency (notation)
      Returns:
      The dependency to be transformed