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
@Enhance protected abstract static class AgentBuilder.Transformer.ForAdvice.Entry extends java.lang.Object
An entry for an advice to apply.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice
An entry for an advice class where both entry and exit advice methods are declared by the different classes.protected static class
AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice
An entry for an advice class where both the (optional) entry and exit advice methods are declared by the same class.
-
Field Summary
Fields Modifier and Type Field Description private LatentMatcher<? super MethodDescription>
matcher
The matcher for advised methods.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Entry(LatentMatcher<? super MethodDescription> matcher)
Creates a new entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected LatentMatcher<? super MethodDescription>
getMatcher()
Returns the matcher for advised methods.protected abstract Advice
resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)
Resolves the advice for this entry.
-
-
-
Field Detail
-
matcher
private final LatentMatcher<? super MethodDescription> matcher
The matcher for advised methods.
-
-
Constructor Detail
-
Entry
protected Entry(LatentMatcher<? super MethodDescription> matcher)
Creates a new entry.- Parameters:
matcher
- The matcher for advised methods.
-
-
Method Detail
-
getMatcher
protected LatentMatcher<? super MethodDescription> 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.
-
-