@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Transformer.Compound extends java.lang.Object implements AgentBuilder.Transformer
AgentBuilder.Transformer
s as a single transformer.AgentBuilder.Transformer.Compound, AgentBuilder.Transformer.ForAdvice, AgentBuilder.Transformer.ForBuildPlugin, AgentBuilder.Transformer.NoOp
Modifier and Type | Field and Description |
---|---|
private java.util.List<AgentBuilder.Transformer> |
transformers
The transformers to apply in their application order.
|
Constructor and Description |
---|
Compound(AgentBuilder.Transformer... transformer)
Creates a new compound transformer.
|
Compound(java.util.List<? extends AgentBuilder.Transformer> transformers)
Creates a new compound transformer.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
java.lang.ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
private final java.util.List<AgentBuilder.Transformer> transformers
public Compound(AgentBuilder.Transformer... transformer)
transformer
- The transformers to apply in their application order.public Compound(java.util.List<? extends AgentBuilder.Transformer> transformers)
transformers
- The transformers to apply in their application order.public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
DynamicType.Builder
.transform
in interface AgentBuilder.Transformer
builder
- The dynamic builder to transform.typeDescription
- The description of the type currently being instrumented.classLoader
- The class loader of the instrumented class. Might be null
to represent the bootstrap class loader.module
- The class's module or null
if the current VM does not support modules.builder
.