Package net.bytebuddy.agent.builder
Interface AgentBuilder.Default.Transformation
-
- All Superinterfaces:
AgentBuilder.RawMatcher
- All Known Implementing Classes:
AgentBuilder.Default.Transformation.Compound
,AgentBuilder.Default.Transformation.Ignored
,AgentBuilder.Default.Transformation.Simple
- Enclosing class:
- AgentBuilder.Default
protected static interface AgentBuilder.Default.Transformation extends AgentBuilder.RawMatcher
A transformation serves as a handler for modifying a class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AgentBuilder.Default.Transformation.Compound
A compound transformation that applied several transformation in the given order and applies the first active transformation.static class
AgentBuilder.Default.Transformation.Ignored
A transformation that does not attempt to transform any type.static interface
AgentBuilder.Default.Transformation.Resolution
A resolution to a transformation.static class
AgentBuilder.Default.Transformation.Simple
A simple, active transformation.-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Conjunction, AgentBuilder.RawMatcher.Disjunction, AgentBuilder.RawMatcher.ForElementMatchers, AgentBuilder.RawMatcher.ForLoadState, AgentBuilder.RawMatcher.ForResolvableTypes, AgentBuilder.RawMatcher.Inversion, AgentBuilder.RawMatcher.Trivial
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgentBuilder.Default.Transformation.Resolution
resolve(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, boolean loaded, java.security.ProtectionDomain protectionDomain, TypePool typePool)
Resolves an attempted transformation to a specific transformation.-
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RawMatcher
matches
-
-
-
-
Method Detail
-
resolve
AgentBuilder.Default.Transformation.Resolution resolve(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, boolean loaded, java.security.ProtectionDomain protectionDomain, TypePool typePool)
Resolves an attempted transformation to a specific transformation.- Parameters:
typeDescription
- A description of the type that is to be transformed.classLoader
- The class loader of the type being transformed.module
- The transformed type's module ornull
if the current VM does not support modules.classBeingRedefined
- In case of a type redefinition, the loaded type being transformed ornull
if that is not the case.loaded
-true
if the instrumented type is loaded.protectionDomain
- The protection domain of the type being transformed.typePool
- The type pool to apply during type creation.- Returns:
- A resolution for the given type.
-
-