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 classA compound transformer.static classA transformer for a field that delegates to another transformer that transforms aFieldDescription.Token.static classA transformer for a field that delegates to another transformer that transforms aMethodDescription.Token.static enumA 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.
-