Interface ElementMatcher<T>
- Type Parameters:
T- The type of the object that is being matched.
- All Known Subinterfaces:
ElementMatcher.Junction<S>, Plugin, Plugin.WithInitialization, Plugin.WithPreprocessor
- All Known Implementing Classes:
AccessControllerPlugin, AccessibilityMatcher, AnnotationTargetMatcher, AnnotationTypeMatcher, ArrayTypeMatcher, AsmVisitorWrapper.ForDeclaredFields.Entry, AsmVisitorWrapper.ForDeclaredMethods.Entry, BooleanMatcher, ByteBuddyMojo.FilePrefixMatcher, ByteBuddyMojo.StalenessFilter, CachedReturnPlugin, CachingMatcher, CachingMatcher.WithInlineEviction, ClassFileVersionMatcher, ClassLoaderHierarchyMatcher, ClassLoaderParentMatcher, CollectionElementMatcher, CollectionErasureMatcher, CollectionItemMatcher, CollectionOneToOneMatcher, CollectionSizeMatcher, DeclaringAnnotationMatcher, DeclaringFieldMatcher, DeclaringMethodMatcher, DeclaringTypeMatcher, DefinedShapeMatcher, DescriptorMatcher, DispatcherAnnotationPlugin, ElementMatcher.Junction.AbstractBase, ElementMatcher.Junction.Conjunction, ElementMatcher.Junction.Disjunction, ElementMatcher.Junction.ForNonNullValues, EqualityMatcher, ErasureMatcher, FailSafeMatcher, FieldRegistry.Default.Compiled.Entry, FieldTypeMatcher, HashCodeAndEqualsPlugin, HashCodeAndEqualsPlugin.ValueMatcher, HashCodeAndEqualsPlugin.WithNonNullableFields, HasSuperClassMatcher, HasSuperTypeMatcher, InheritedAnnotationMatcher, InstanceTypeMatcher, IsNamedMatcher, LatentMatcher.ForFieldToken.ResolvedMatcher, LatentMatcher.ForMethodToken.ResolvedMatcher, MemberSubstitution.LambdaMetaFactoryMatcher, MethodExceptionTypeMatcher, MethodOverrideMatcher, MethodParametersMatcher, MethodParameterTypeMatcher, MethodParameterTypesMatcher, MethodReturnTypeMatcher, MethodSortMatcher, ModifierAdjustment.Adjustment, ModifierMatcher, ModuleVersionPlugin, NameMatcher, NegatingMatcher, NullMatcher, Plugin.Engine.Source.Filtering.MultiReleaseVersionMatcher, Plugin.Engine.Source.Filtering.NoFolderMatcher, Plugin.ForElementMatcher, Plugin.NoOp, PrimitiveTypeMatcher, RecordComponentRegistry.Default.Compiled.Entry, RecordMatcher, RenamingPlugin, RepeatedAnnotationPlugin, SafeVarargsPlugin, SignatureTokenMatcher, StringMatcher, StringSetMatcher, SubTypeMatcher, SuperTypeMatcher, ToStringPlugin, TypeSortMatcher, VisibilityMatcher
public interface ElementMatcher<T>
An element matcher is used as a predicate for identifying code elements such as types, methods, fields or
annotations. They are similar to Java 8's
Predicates but compatible to Java 6 and Java 7 and represent
a functional interface. They can be chained by using instances of
ElementMatcher.Junction.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA junctions allows to chain differentElementMatchers in a readable manner. -
Method Summary
-
Method Details
-
matches
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.
-