S - The type of the transformed instance.@HashCodeAndEqualsPlugin.Enhance public static class Transformer.Compound<S> extends java.lang.Object implements Transformer<S>
Transformer.Compound<S>, Transformer.ForField, Transformer.ForMethod, Transformer.NoOp| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Transformer<S>> |
transformers
The list of transformers to apply in their application order.
|
| Constructor and Description |
|---|
Compound(java.util.List<? extends Transformer<S>> transformers)
Creates a new compound transformer.
|
Compound(Transformer<S>... transformer)
Creates a new compound transformer.
|
| Modifier and Type | Method and Description |
|---|---|
S |
transform(TypeDescription instrumentedType,
S target)
Transforms the supplied target.
|
private final java.util.List<Transformer<S>> transformers
public Compound(Transformer<S>... transformer)
transformer - The list of transformers to apply in their application order.public Compound(java.util.List<? extends Transformer<S>> transformers)
transformers - The list of transformers to apply in their application order.public S transform(TypeDescription instrumentedType, S target)
transform in interface Transformer<S>instrumentedType - The instrumented type that declares the target being transformed.target - The target entity that is being transformed.