public class Transformation
extends java.lang.Object
| Constructor and Description |
|---|
Transformation(org.gradle.api.Project project)
Creates a new transformation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
argument(org.gradle.api.Action<PluginArgument> action)
Adds a plugin argument to consider during instantiation.
|
void |
argument(groovy.lang.Closure<?> closure)
Adds a plugin argument to consider during instantiation.
|
java.util.List<PluginArgument> |
getArguments()
Returns a list of arguments that are provided to the plugin for construction.
|
java.lang.Class<? extends net.bytebuddy.build.Plugin> |
getPlugin()
Returns the plugin type to apply.
|
java.lang.String |
getPluginName()
Returns the fully-qualified name of the plugin type to apply.
|
protected java.util.List<net.bytebuddy.build.Plugin.Factory.UsingReflection.ArgumentResolver> |
makeArgumentResolvers()
Creates the argument resolvers for the plugin's constructor by transforming the plugin arguments.
|
void |
setPlugin(java.lang.Class<? extends net.bytebuddy.build.Plugin> plugin)
Sets the plugin type to apply.
|
void |
setPluginName(java.lang.String pluginName)
Sets the fully-qualified name of the plugin type to apply.
|
protected java.lang.Class<? extends net.bytebuddy.build.Plugin> |
toPlugin(java.lang.ClassLoader classLoader)
Resolves the plugin type.
|
protected java.lang.String |
toPluginName()
Resolves the name of the plugin.
|
@Inject public Transformation(org.gradle.api.Project project)
project - The object factory to use.@Input public java.util.List<PluginArgument> getArguments()
public void argument(groovy.lang.Closure<?> closure)
closure - The closure for configuring the argument.public void argument(org.gradle.api.Action<PluginArgument> action)
action - The action for configuring the argument.protected java.util.List<net.bytebuddy.build.Plugin.Factory.UsingReflection.ArgumentResolver> makeArgumentResolvers()
@Input @MaybeNull @Optional public java.lang.Class<? extends net.bytebuddy.build.Plugin> getPlugin()
public void setPlugin(@MaybeNull
java.lang.Class<? extends net.bytebuddy.build.Plugin> plugin)
plugin - The plugin type to apply.@Input @MaybeNull @Optional public java.lang.String getPluginName()
public void setPluginName(@MaybeNull
java.lang.String pluginName)
pluginName - The fully-qualified name of the plugin type to apply.protected java.lang.Class<? extends net.bytebuddy.build.Plugin> toPlugin(@MaybeNull
java.lang.ClassLoader classLoader)
classLoader - The class loader to load a plugin from, if appropriate.protected java.lang.String toPluginName()