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.
  • Field Details

  • Constructor Details

    • ResolvedMatcher

      protected ResolvedMatcher(FieldDescription.SignatureToken signatureToken)
      Creates a new resolved matcher.
      Parameters:
      signatureToken - The signature token representing the matched field.
  • Method Details

    • matches

      public boolean matches(@MaybeNull FieldDescription target)
      Matches a target against this element matcher.
      Specified by:
      matches in interface ElementMatcher<FieldDescription>
      Parameters:
      target - The instance to be matched or null.
      Returns:
      true if the given element is matched by this matcher or false otherwise.