Package net.bytebuddy.build
Interface Plugin
-
- All Superinterfaces:
ElementMatcher<TypeDescription>
- All Known Implementing Classes:
HashCodeAndEqualsPlugin
,HashCodeAndEqualsPlugin.WithNonNullableFields
,ToStringPlugin
public interface Plugin extends ElementMatcher<TypeDescription>
A plugin that allows for the application of Byte Buddy transformations during a build process. This plugin's transformation is applied to any type matching this plugin's type matcher. Plugin types must be public, non-abstract and must declare a public default constructor to work.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder<?>
apply(DynamicType.Builder<?> builder, TypeDescription typeDescription)
Applies this plugin.-
Methods inherited from interface net.bytebuddy.matcher.ElementMatcher
matches
-
-
-
-
Method Detail
-
apply
DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription)
Applies this plugin.- Parameters:
builder
- The builder to use as a basis for the applied transformation.typeDescription
- The type being transformed.- Returns:
- The supplied builder with additional transformations registered.
-
-