Package net.bytebuddy.matcher
Class LatentMatcher.ForFieldToken
- java.lang.Object
-
- net.bytebuddy.matcher.LatentMatcher.ForFieldToken
-
- All Implemented Interfaces:
LatentMatcher<FieldDescription>
- Enclosing interface:
- LatentMatcher<T>
@Enhance public static class LatentMatcher.ForFieldToken extends java.lang.Object implements LatentMatcher<FieldDescription>
A latent matcher where the field 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.ForFieldToken.ResolvedMatcher
A resolved matcher of a latent field matcher for a field 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 FieldDescription.Token
token
A token representing the field being matched.
-
Constructor Summary
Constructors Constructor Description ForFieldToken(FieldDescription.Token token)
Creates a new latent matcher for a field token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementMatcher<? super FieldDescription>
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
-
-
-
Field Detail
-
token
private final FieldDescription.Token token
A token representing the field being matched.
-
-
Constructor Detail
-
ForFieldToken
public ForFieldToken(FieldDescription.Token token)
Creates a new latent matcher for a field token.- Parameters:
token
- A token representing the field being matched.
-
-
Method Detail
-
resolve
public ElementMatcher<? super FieldDescription> resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<FieldDescription>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-
-