Package net.bytebuddy.matcher
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.
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description ForNonNullValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleandoMatch(W target)Matches the supplied value if it was found not to benull.booleanmatches(W target)Matches a target against this element matcher.-
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase
and, or
-
-
-
-
Method Detail
-
matches
public boolean matches(@MaybeNull W target)
Matches a target against this element matcher.- Parameters:
target- The instance to be matched ornull.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
doMatch
protected abstract boolean doMatch(W target)
Matches the supplied value if it was found not to benull.- Parameters:
target- The instance to be matched.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
-