Class Transformer.Compound<S>
java.lang.Object
net.bytebuddy.dynamic.Transformer.Compound<S>
- Type Parameters:
S- The type of the transformed instance.
- All Implemented Interfaces:
Transformer<S>
- Enclosing interface:
Transformer<T>
A compound transformer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Transformer
Transformer.Compound<S>, Transformer.ForField, Transformer.ForMethod, Transformer.NoOp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Transformer<S>> The list of transformers to apply in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionCompound(List<? extends Transformer<S>> transformers) Creates a new compound transformer.Compound(Transformer<S>... transformer) Creates a new compound transformer. -
Method Summary
Modifier and TypeMethodDescriptiontransform(TypeDescription instrumentedType, S target) Transforms the supplied target.
-
Field Details
-
transformers
The list of transformers to apply in their application order.
-
-
Constructor Details
-
Compound
Creates a new compound transformer.- Parameters:
transformer- The list of transformers to apply in their application order.
-
Compound
Creates a new compound transformer.- Parameters:
transformers- The list of transformers to apply in their application order.
-
-
Method Details
-
transform
Transforms the supplied target.- Specified by:
transformin interfaceTransformer<S>- Parameters:
instrumentedType- The instrumented type that declares the target being transformed.target- The target entity that is being transformed.- Returns:
- The transformed instance.
-