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 classAgentBuilder.Default.Transformation.CompoundA compound transformation that applied several transformation in the given order and applies the first active transformation.static classAgentBuilder.Default.Transformation.IgnoredA transformation that does not attempt to transform any type.static interfaceAgentBuilder.Default.Transformation.ResolutionA resolution to a transformation.static classAgentBuilder.Default.Transformation.SimpleA 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.Resolutionresolve(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 ornullif the current VM does not support modules.classBeingRedefined- In case of a type redefinition, the loaded type being transformed ornullif that is not the case.loaded-trueif 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.
-
-