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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceWhen initially registering an AccessTransformers container, the consumer must define key information regarding how AccessTransformers will be used. -
Method Summary
Modifier and TypeMethodDescriptiondefault DependencyQueues the given dependency to be transformed by AccessTransformers.Queues the given dependency to be transformed by AccessTransformers.default Dependencydep(Object dependencyNotation, Action<? super Dependency> action) Queues the given dependency to be transformed by AccessTransformers.default DependencyQueues the given dependency to be transformed by AccessTransformers.default DependencyQueues the given dependency to be transformed by AccessTransformers.default Dependencydep(Provider<?> dependencyNotation, Action<? super Dependency> action) Queues the given dependency to be transformed by AccessTransformers.default Dependencydep(ProviderConvertible<?> dependencyNotation) Queues the given dependency to be transformed by AccessTransformers.default Dependencydep(ProviderConvertible<?> dependencyNotation, Closure closure) Queues the given dependency to be transformed by AccessTransformers.default Dependencydep(ProviderConvertible<?> dependencyNotation, Action<? super Dependency> action) Queues the given dependency to be transformed by AccessTransformers.Gets the attribute used by the transformer.voidoptions(Action<? super AccessTransformersContainer.Options> action) Configures the access transformer options.static AccessTransformersContainerregister(Project project, Attribute<Boolean> attribute, Action<? super AccessTransformersContainer.Options> options) Registers a new container using the given attribute and options.
-
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 forattribute- The boolean attribute to use for this containeroptions- The options to apply- Returns:
- The registered container
- See Also:
-
getAttribute
Gets the attribute used by the transformer. It must be unique to this container.- Returns:
- The attribute
- See Also:
-
options
Configures the access transformer options.- Parameters:
action- The configuring action- See Also:
-
dep
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
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
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
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
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
Queues the given dependency to be transformed by AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation)- Returns:
- The dependency to be transformed
-