Package net.bytebuddy.matcher
Class LatentMatcher.ForMethodToken
java.lang.Object
net.bytebuddy.matcher.LatentMatcher.ForMethodToken
- All Implemented Interfaces:
LatentMatcher<MethodDescription>
- Enclosing interface:
LatentMatcher<T>
@Enhance
public static class LatentMatcher.ForMethodToken
extends Object
implements LatentMatcher<MethodDescription>
A latent matcher where the method token is being attached to the supplied type description before matching.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A resolved matcher of a latent method matcher for a method token.Nested classes/interfaces inherited from interface net.bytebuddy.matcher.LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.Token
A token representing the method being matched. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new latent matcher for a method token. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher
<? super MethodDescription> resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Field Details
-
token
A token representing the method being matched.
-
-
Constructor Details
-
ForMethodToken
Creates a new latent matcher for a method token.- Parameters:
token
- A token representing the method being matched.
-
-
Method Details
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<MethodDescription>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-