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 java.lang.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 Classes Modifier and Type Class Description protected static class
LatentMatcher.ForMethodToken.ResolvedMatcher
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
Fields Modifier and Type Field Description private MethodDescription.Token
token
A token representing the method being matched.
-
Constructor Summary
Constructors Constructor Description ForMethodToken(MethodDescription.Token token)
Creates a new latent matcher for a method token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementMatcher<? super MethodDescription>
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
-
-
-
Field Detail
-
token
private final MethodDescription.Token token
A token representing the method being matched.
-
-
Constructor Detail
-
ForMethodToken
public ForMethodToken(MethodDescription.Token token)
Creates a new latent matcher for a method token.- Parameters:
token
- A token representing the method being matched.
-
-
Method Detail
-
resolve
public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
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.
-
-