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 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
FieldsModifier and TypeFieldDescriptionprivate final RecordComponentDescription.Token
The token being matched. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a latent matcher for a record component token. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher
<? super RecordComponentDescription> resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Field Details
-
token
The token being matched.
-
-
Constructor Details
-
ForRecordComponentToken
Creates a latent matcher for a record component token.- Parameters:
token
- The token being matched.
-
-
Method Details
-
resolve
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.
-