Package net.bytebuddy.matcher
Class LatentMatcher.ForFieldToken.ResolvedMatcher
java.lang.Object
net.bytebuddy.matcher.LatentMatcher.ForFieldToken.ResolvedMatcher
- All Implemented Interfaces:
ElementMatcher<FieldDescription>
- Enclosing class:
- LatentMatcher.ForFieldToken
@Enhance
protected static class LatentMatcher.ForFieldToken.ResolvedMatcher
extends Object
implements ElementMatcher<FieldDescription>
A resolved matcher of a latent field matcher for a field token.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldDescription.SignatureTokenThe signature token representing the matched field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolvedMatcher(FieldDescription.SignatureToken signatureToken) Creates a new resolved matcher. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(FieldDescription target) Matches a target against this element matcher.
-
Field Details
-
signatureToken
The signature token representing the matched field.
-
-
Constructor Details
-
ResolvedMatcher
Creates a new resolved matcher.- Parameters:
signatureToken- The signature token representing the matched field.
-
-
Method Details
-
matches
Matches a target against this element matcher.- Specified by:
matchesin interfaceElementMatcher<FieldDescription>- Parameters:
target- The instance to be matched ornull.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-