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 Classes Modifier and Type Interface Description static classTransformer.Compound<S>A compound transformer.static classTransformer.ForFieldA transformer for a field that delegates to another transformer that transforms aFieldDescription.Token.static classTransformer.ForMethodA transformer for a field that delegates to another transformer that transforms aMethodDescription.Token.static classTransformer.NoOpA non-operational transformer that returns the received instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ttransform(TypeDescription instrumentedType, T target)Transforms the supplied target.
-
-
-
Method Detail
-
transform
T transform(TypeDescription instrumentedType, T target)
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.
-
-