Package net.bytebuddy.matcher
Class LatentMatcher.ForMethodToken.ResolvedMatcher
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<MethodDescription>
net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<MethodDescription>
net.bytebuddy.matcher.LatentMatcher.ForMethodToken.ResolvedMatcher
- All Implemented Interfaces:
ElementMatcher<MethodDescription>
,ElementMatcher.Junction<MethodDescription>
- Enclosing class:
LatentMatcher.ForMethodToken
@Enhance
protected static class LatentMatcher.ForMethodToken.ResolvedMatcher
extends ElementMatcher.Junction.ForNonNullValues<MethodDescription>
A resolved matcher of a latent method matcher for a method 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 MethodDescription.SignatureToken
The signature token representing the matched field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ResolvedMatcher
(MethodDescription.SignatureToken signatureToken) Creates a new resolved matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
doMatch
(MethodDescription 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<MethodDescription>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-