Package net.bytebuddy.agent.builder
Interface AgentBuilder.Transformer
-
- All Known Implementing Classes:
AgentBuilder.Transformer.Compound,AgentBuilder.Transformer.ForAdvice,AgentBuilder.Transformer.ForBuildPlugin,AgentBuilder.Transformer.NoOp
- Enclosing interface:
- AgentBuilder
public static interface AgentBuilder.TransformerA transformer allows to apply modifications to aDynamicType. Such a modification is then applied to any instrumented type that was matched by the preceding matcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAgentBuilder.Transformer.CompoundA compound transformer that allows to group severalAgentBuilder.Transformers as a single transformer.static classAgentBuilder.Transformer.ForAdviceA transformer for applying anAdvicewhere this advice class might reference types of both the agent's and the user's class loader.static classAgentBuilder.Transformer.ForBuildPluginA transformer that applies a buildPlugin.static classAgentBuilder.Transformer.NoOpA no-op implementation of aAgentBuilder.Transformerthat does not modify the supplied dynamic type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder<?>transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)Allows for a transformation of aDynamicType.Builder.
-
-
-
Method Detail
-
transform
DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder.- Parameters:
builder- The dynamic builder to transform.typeDescription- The description of the type currently being instrumented.classLoader- The class loader of the instrumented class. Might benullto represent the bootstrap class loader.module- The class's module ornullif the current VM does not support modules.- Returns:
- A transformed version of the supplied
builder.
-
-