Class ElementMatcher.Junction.ForNonNullValues<W>

java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<W>
net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<W>
Type Parameters:
W - The type of the object that is being matched.
All Implemented Interfaces:
ElementMatcher<W>, ElementMatcher.Junction<W>
Direct Known Subclasses:
AccessibilityMatcher, AnnotationTargetMatcher, AnnotationTypeMatcher, ArrayTypeMatcher, ByteBuddyMojo.FilePrefixMatcher, ByteBuddyMojo.StalenessFilter, ClassFileVersionMatcher, CollectionElementMatcher, CollectionErasureMatcher, CollectionItemMatcher, CollectionOneToOneMatcher, CollectionSizeMatcher, DeclaringAnnotationMatcher, DeclaringFieldMatcher, DeclaringMethodMatcher, DeclaringTypeMatcher, DefinedShapeMatcher, DescriptorMatcher, ErasureMatcher, FieldTypeMatcher, HashCodeAndEqualsPlugin.ValueMatcher, HasSuperClassMatcher, HasSuperTypeMatcher, InheritedAnnotationMatcher, InstanceTypeMatcher, IsNamedMatcher, LatentMatcher.ForFieldToken.ResolvedMatcher, LatentMatcher.ForMethodToken.ResolvedMatcher, MethodExceptionTypeMatcher, MethodOverrideMatcher, MethodParametersMatcher, MethodParameterTypeMatcher, MethodParameterTypesMatcher, MethodReturnTypeMatcher, MethodSortMatcher, ModifierMatcher, NameMatcher, PrimitiveTypeMatcher, RecordMatcher, SignatureTokenMatcher, StringMatcher, StringSetMatcher, SubTypeMatcher, SuperTypeMatcher, TypeSortMatcher, VisibilityMatcher
Enclosing interface:
ElementMatcher.Junction<S>

@Enhance public abstract static class ElementMatcher.Junction.ForNonNullValues<W> extends ElementMatcher.Junction.AbstractBase<W>
An abstract base implementation that rejects null values.
  • Constructor Details

    • ForNonNullValues

      public ForNonNullValues()
  • Method Details

    • matches

      public boolean matches(@MaybeNull W target)
      Matches a target against this element matcher.
      Parameters:
      target - The instance to be matched or null.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • doMatch

      protected abstract boolean doMatch(W target)
      Matches the supplied value if it was found not to be null.
      Parameters:
      target - The instance to be matched.
      Returns:
      true if the given element is matched by this matcher or false otherwise.