@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Compound extends java.lang.Object implements Plugin
Plugin.Compound, Plugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOp
ElementMatcher.Junction<S>
Modifier and Type | Field and Description |
---|---|
private java.util.List<Plugin> |
plugins
The plugins to apply.
|
Constructor and Description |
---|
Compound(java.util.List<? extends Plugin> plugins)
Creates a compound plugin.
|
Compound(Plugin... plugin)
Creates a compound plugin.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
void |
close() |
boolean |
matches(TypeDescription target)
Matches a target against this element matcher.
|
private final java.util.List<Plugin> plugins
public Compound(Plugin... plugin)
plugin
- The plugins to apply.public Compound(java.util.List<? extends Plugin> plugins)
plugins
- The plugins to apply.public boolean matches(TypeDescription target)
matches
in interface ElementMatcher<TypeDescription>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
apply
in interface Plugin
builder
- The builder to use as a basis for the applied transformation.typeDescription
- The type being transformed.classFileLocator
- A class file locator that can locate other types in the scope of the project.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException