Package net.bytebuddy.matcher
Class LatentMatcher.ForFieldToken.ResolvedMatcher
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<FieldDescription>
net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<FieldDescription>
net.bytebuddy.matcher.LatentMatcher.ForFieldToken.ResolvedMatcher
- All Implemented Interfaces:
ElementMatcher<FieldDescription>
,ElementMatcher.Junction<FieldDescription>
- Enclosing class:
LatentMatcher.ForFieldToken
@Enhance
protected static class LatentMatcher.ForFieldToken.ResolvedMatcher
extends ElementMatcher.Junction.ForNonNullValues<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>
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldDescription.SignatureToken
The signature token representing the matched field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ResolvedMatcher
(FieldDescription.SignatureToken signatureToken) Creates a new resolved matcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doMatch
(FieldDescription target) Matches the supplied value if it was found not to benull
.Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues
matches
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase
and, or
-
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
-
doMatch
Matches the supplied value if it was found not to benull
.- Specified by:
doMatch
in classElementMatcher.Junction.ForNonNullValues<FieldDescription>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-