Package net.bytebuddy.matcher
Class LatentMatcher.ForMethodToken.ResolvedMatcher
- java.lang.Object
-
- net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<W>
-
- 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
Fields Modifier and Type Field Description private MethodDescription.SignatureTokensignatureTokenThe signature token representing the matched field.
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolvedMatcher(MethodDescription.SignatureToken signatureToken)Creates a new resolved matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoMatch(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 Detail
-
signatureToken
private final MethodDescription.SignatureToken signatureToken
The signature token representing the matched field.
-
-
Constructor Detail
-
ResolvedMatcher
protected ResolvedMatcher(MethodDescription.SignatureToken signatureToken)
Creates a new resolved matcher.- Parameters:
signatureToken- The signature token representing the matched field.
-
-
Method Detail
-
doMatch
public boolean doMatch(MethodDescription target)
Matches the supplied value if it was found not to benull.- Specified by:
doMatchin classElementMatcher.Junction.ForNonNullValues<MethodDescription>- Parameters:
target- The instance to be matched.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
-