Package net.bytebuddy.dynamic
Interface Transformer<T>
- Type Parameters:
T
- The type of the instance being transformed.
- All Known Implementing Classes:
Transformer.Compound
,Transformer.ForField
,Transformer.ForField.FieldModifierTransformer
,Transformer.ForMethod
,Transformer.ForMethod.MethodModifierTransformer
,Transformer.NoOp
public interface Transformer<T>
A transformer is responsible for transforming an object into a compatible instance of the same type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A compound transformer.static class
A transformer for a field that delegates to another transformer that transforms aFieldDescription.Token
.static class
A transformer for a field that delegates to another transformer that transforms aMethodDescription.Token
.static enum
A non-operational transformer that returns the received instance. -
Method Summary
Modifier and TypeMethodDescriptiontransform
(TypeDescription instrumentedType, T target) Transforms the supplied target.
-
Method Details
-
transform
Transforms the supplied target.- Parameters:
instrumentedType
- The instrumented type that declares the target being transformed.target
- The target entity that is being transformed.- Returns:
- The transformed instance.
-