Package net.bytebuddy.agent.builder
Class AgentBuilder.Transformer.ForAdvice.Entry
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry
- Direct Known Subclasses:
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice
,AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice
- Enclosing class:
AgentBuilder.Transformer.ForAdvice
An entry for an advice to apply.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
An entry for an advice class where both entry and exit advice methods are declared by the different classes.protected static class
An entry for an advice class where both the (optional) entry and exit advice methods are declared by the same class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LatentMatcher
<? super MethodDescription> The matcher for advised methods. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Entry
(LatentMatcher<? super MethodDescription> matcher) Creates a new entry. -
Method Summary
Modifier and TypeMethodDescriptionprotected LatentMatcher
<? super MethodDescription> Returns the matcher for advised methods.protected abstract Advice
resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) Resolves the advice for this entry.
-
Field Details
-
matcher
The matcher for advised methods.
-
-
Constructor Details
-
Entry
Creates a new entry.- Parameters:
matcher
- The matcher for advised methods.
-
-
Method Details
-
getMatcher
Returns the matcher for advised methods.- Returns:
- The matcher for advised methods.
-
resolve
protected abstract Advice resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) Resolves the advice for this entry.- Parameters:
advice
- The advice configuration.typePool
- The type pool to use.classFileLocator
- The class file locator to use.- Returns:
- The resolved advice.
-