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