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 class
Transformer.Compound<S>
A compound transformer.static class
Transformer.ForField
A transformer for a field that delegates to another transformer that transforms aFieldDescription.Token
.static class
Transformer.ForMethod
A transformer for a field that delegates to another transformer that transforms aMethodDescription.Token
.static class
Transformer.NoOp
A non-operational transformer that returns the received instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
transform(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.
-
-