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.
  • Method Details

    • 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.