Uses of Interface
net.bytebuddy.matcher.ElementMatcher.Junction
Packages that use ElementMatcher.Junction
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
A package containing classes for applying Byte Buddy transformers within a Maven build.
The implementation package contains any logic for intercepting method calls.
Contains an API for matching Java byte code entities.
-
Uses of ElementMatcher.Junction in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as ElementMatcher.JunctionModifier and TypeFieldDescriptionprivate final ElementMatcher.Junction<FieldDescription.InDefinedShape> MemberRemoval.fieldMatcherThe matcher that decides upon field removal.private final ElementMatcher.Junction<FieldDescription.InDefinedShape> MemberRemoval.MemberRemovingClassVisitor.fieldMatcherThe matcher that determines field removal.private final ElementMatcher.Junction<? super TypeDescription> TypeReferenceAdjustment.filterA filter for excluding types from type reference analysis.private final ElementMatcher.Junction<MethodDescription> MemberRemoval.MemberRemovingClassVisitor.methodMatcherThe matcher that determines method removal.private final ElementMatcher.Junction<MethodDescription> MemberRemoval.methodMatcherThe matcher that decides upon method removal.Constructors in net.bytebuddy.asm with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprotectedMemberRemoval(ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher.Junction<MethodDescription> methodMatcher) Creates a new member removal instance.protectedMemberRemovingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher.Junction<MethodDescription> methodMatcher, Map<String, FieldDescription.InDefinedShape> fields, Map<String, MethodDescription> methods) Creates a new member removing class visitor.protectedTypeReferenceAdjustment(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter) Creates a type reference adjustment. -
Uses of ElementMatcher.Junction in net.bytebuddy.build
Classes in net.bytebuddy.build that implement ElementMatcher.JunctionModifier and TypeClassDescriptionprotected static classAn element matcher for aHashCodeAndEqualsPlugin.ValueHandlingannotation.Fields in net.bytebuddy.build declared as ElementMatcher.JunctionModifier and TypeFieldDescriptionprivate final ElementMatcher.Junction<? super TypeDescription> Plugin.Engine.Default.ignoredTypeMatcherA matcher for types to exclude from transformation.Constructors in net.bytebuddy.build with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprotectedDefault(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher) Creates a new default plugin engine. -
Uses of ElementMatcher.Junction in net.bytebuddy.build.maven
Classes in net.bytebuddy.build.maven that implement ElementMatcher.JunctionModifier and TypeClassDescriptionprivate static classMatches elements which represent a Java class that is represented in the list or an inner class of the classes represented in the list.protected static classA filter for files that were written before a given timestamp, to avoid duplicate application. -
Uses of ElementMatcher.Junction in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as ElementMatcher.JunctionModifier and TypeFieldDescriptionprivate final ElementMatcher.Junction<? super FieldDescription.InDefinedShape> EqualsMethod.ignoredA matcher to filter fields that should not be used for a equality resolution.private final ElementMatcher.Junction<? super FieldDescription.InDefinedShape> HashCodeMethod.ignoredA matcher to filter fields that should not be used for a hash codes computation.private final ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ToStringMethod.ignoredA filter that determines what fields to ignore.private final ElementMatcher.Junction<? super FieldDescription.InDefinedShape> EqualsMethod.nonNullableA matcher to determine fields of a reference type that cannot benull.private final ElementMatcher.Junction<? super FieldDescription.InDefinedShape> HashCodeMethod.nonNullableA matcher to determine fields of a reference type that cannot benull.Constructors in net.bytebuddy.implementation with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprivateEqualsMethod(EqualsMethod.SuperClassCheck superClassCheck, EqualsMethod.TypeCompatibilityCheck typeCompatibilityCheck, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> nonNullable, Comparator<? super FieldDescription.InDefinedShape> comparator) Creates a new equals method implementation.privateHashCodeMethod(HashCodeMethod.OffsetProvider offsetProvider, int multiplier, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> nonNullable) Creates a new hash code method implementation.privateToStringMethod(ToStringMethod.PrefixResolver prefixResolver, String start, String end, String separator, String definer, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored) Creates a newtoStringimplementation. -
Uses of ElementMatcher.Junction in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher that implement ElementMatcher.JunctionModifier and TypeClassDescriptionclassAccessibilityMatcher<T extends ByteCodeElement>An element matcher that validates that a given byte code element is accessible to a given type.classAnnotationTargetMatcher<T extends AnnotationDescription>A matcher for annotations that target a given element type.classAnnotationTypeMatcher<T extends AnnotationDescription>An element matcher that matches the type of an annotation description.classArrayTypeMatcher<T extends TypeDefinition>Matches an enumeration type.classAn element matcher that returns a fixed result.classA matcher that remembers the results of previously matching an equal target.static classA caching matcher with inline cache eviction.classClassFileVersionMatcher<T extends TypeDescription>A matcher to consider if a class file version reaches a given boundary.classClassLoaderHierarchyMatcher<T extends ClassLoader>An element matcher that matches allClassLoaders in the matched class loaders hierarchy against a given matcher.classClassLoaderParentMatcher<T extends ClassLoader>An element matcher that matches a class loader for being a parent of the given class loader.classA matcher that matches a given element of a collection.classCollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>>An element matcher that matches a collection of types by their erasures.classA list item matcher matches any element of a collection to a given matcher and assures that at least one element matches the supplied iterable condition.classAn element matcher that matches a given iterable collection to a list of matchers on a per-element basis.classCollectionSizeMatcher<T extends Iterable<?>>An element matcher that matches a collection by its size.classDeclaringAnnotationMatcher<T extends AnnotationSource>An element matcher that matches the list of annotations that are provided by an annotated element.classDeclaringFieldMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares fields of a given property.classDeclaringMethodMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares methods of a given property.classDeclaringTypeMatcher<T extends DeclaredByType>An element matcher that matches the declaring type of another element, only if this element is actually declared in a type.classDefinedShapeMatcher<T extends ByteCodeElement.TypeDependant<S,?>, S extends ByteCodeElement.TypeDependant<?, ?>> An element matcher that matches a byte code's element's token against a matcher for such a token.classDescriptorMatcher<T extends NamedElement.WithDescriptor>An element matcher that matches a Java descriptor.static classA base implementation ofElementMatcher.Junction.static classA conjunction matcher which only matches an element if both represented matchers constitute a match.static classA disjunction matcher which matches an element against matchers in order to constitute a successful match.static classAn abstract base implementation that rejects null values.classAn element matcher that checks an object's equality to another object.classErasureMatcher<T extends TypeDefinition>An element matcher that matches its argument'sTypeDescription.Genericraw type against the given matcher for aTypeDescription.classA fail-safe matcher catches exceptions that are thrown by a delegate matcher and returns an alternative value.classFieldTypeMatcher<T extends FieldDescription>An element matcher that matches a field's type.classHasSuperClassMatcher<T extends TypeDescription>An element matcher that matches a super class.classHasSuperTypeMatcher<T extends TypeDescription>An element matcher that matches a super type.classInheritedAnnotationMatcher<T extends TypeDescription>An element matcher that matches the list of inherited annotations of a type description.classAn element matcher that matches an object's type.classIsNamedMatcher<T extends NamedElement.WithOptionalName>An element matcher that matches a named element only if is explicitly named.protected static classA resolved matcher of a latent field matcher for a field token.protected static classA resolved matcher of a latent method matcher for a method token.classMethodExceptionTypeMatcher<T extends MethodDescription>An element matcher that matches the exceptions that are declared by a method.classMethodOverrideMatcher<T extends MethodDescription>A matcher that checks if any super type of a type declares a method with the same shape of a matched method.classMethodParametersMatcher<T extends MethodDescription>An element matcher that matches a method's parameters.classMethodParameterTypeMatcher<T extends ParameterDescription>An element matcher that matches a method's parameter's type.classMethodParameterTypesMatcher<T extends ParameterList<?>>An element matcher that matches a method's parameter types.classMethodReturnTypeMatcher<T extends MethodDescription>An element matcher that matches its argument's return type against a given type matcher.classMethodSortMatcher<T extends MethodDescription>Matches a method description by its general characteristics which are represented as aMethodSortMatcher.Sort.classModifierMatcher<T extends ModifierReviewable>An element matcher that matches a byte code element by its modifiers.classNameMatcher<T extends NamedElement>A method matcher that matches a byte code element's source code name: The source code name of types is equal to their binary name where arrays are appended a[]by their arity and where inner classes are appended by dollar signs to their outer class's source name. Constructors and the type initializer methods are represented by the empty string as they do not represent a source code name. Fields are named as in the source code.classAn element matcher that reverses the matching result of another matcher.classNullMatcher<T>An element matcher that matches thenullvalue.classPrimitiveTypeMatcher<T extends TypeDefinition>Matches a primitive type.classRecordMatcher<T extends TypeDefinition>Matches a record.classSignatureTokenMatcher<T extends MethodDescription>Matches a method description's signature token against another matcher.classAn element matcher that compares two strings by a given pattern which is characterized by aStringMatcher.Mode.classAn element matcher which checks if a string is in a set of strings.classSubTypeMatcher<T extends TypeDescription>An element matcher that matches its argument for being another type's subtype.classSuperTypeMatcher<T extends TypeDescription>An element matcher that matches its argument for being another type's super type.classTypeSortMatcher<T extends TypeDefinition>An element matcher that validates that a given generic type description represents a type of a given name.classVisibilityMatcher<T extends ByteCodeElement>An element matcher that validates that a given byte code element is visible to a given type.Methods in net.bytebuddy.matcher that return ElementMatcher.JunctionModifier and TypeMethodDescription<U extends V>
ElementMatcher.Junction<U> ElementMatcher.Junction.AbstractBase.and(ElementMatcher<? super U> other) Creates a conjunction where this matcher and theothermatcher must both be matched in order to constitute a successful match.<U extends S>
ElementMatcher.Junction<U> ElementMatcher.Junction.and(ElementMatcher<? super U> other) Creates a conjunction where this matcher and theothermatcher must both be matched in order to constitute a successful match.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType(Class<? extends Annotation> type) Matches if an annotation is of a given type.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType(TypeDescription type) Matches if an annotation is of a given type.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType(ElementMatcher<? super TypeDescription> matcher) Matches if an annotation's type matches the supplied matcher.static <T> ElementMatcher.Junction<T> ElementMatchers.any()Creates a matcher that always returnstrue.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.anyOf(Annotation... value) Creates a matcher that matches any of the given annotations asAnnotationDescriptions by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> Creates a matcher that matches any of the given objects by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> Creates a matcher that matches any of the given objects by theObject.equals(Object)method.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.anyOf(Constructor<?>... value) Creates a matcher that matches any of the given constructors asMethodDescriptions by theObject.equals(Object)method.static <T extends FieldDescription>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given fields asFieldDescriptions by theObject.equals(Object)method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given methods asMethodDescriptions by theObject.equals(Object)method.static <T extends TypeDefinition>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given types asTypeDescriptions by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> ElementMatchers.cached(ElementMatcher<? super T> matcher, int evictionSize) Wraps another matcher but caches the result of previously matched elements.static <T> ElementMatcher.Junction<T> ElementMatchers.cached(ElementMatcher<? super T> matcher, ConcurrentMap<? super T, Boolean> map) Wraps another matcher but caches the result of previously matched elements.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches aMethodDescriptionby its capability to throw a given checked exception.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.canThrow(TypeDescription exceptionType) Matches aMethodDescriptionby its capability to throw a given checked exception.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher) Matches anAnnotationSourceto declare any annotation that matches the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresException(Class<? extends Throwable> exceptionType) Matches a method that declares the given generic exception type as a (erased) exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresException(TypeDescription exceptionType) Matches a method that declares the given generic exception type as a (erased) exception type.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.declaresField(ElementMatcher<? super FieldDescription> matcher) Matches a type by another matcher that is applied on any of its declared fields.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException(Type exceptionType) Matches a method that declares the given generic exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException(TypeDescription.Generic exceptionType) Matches a method that declares the given generic exception type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matcher) Matches a method's generic exception types against the provided matcher.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.declaresMethod(ElementMatcher<? super MethodDescription> matcher) Matches a type by another matcher that is applied on any of its declared methods.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.definedField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher) Matches a field in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.definedMethod(ElementMatcher<? super MethodDescription.InDefinedShape> matcher) Matches a method in its defined shape.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.definedParameter(ElementMatcher<? super ParameterDescription.InDefinedShape> matcher) Matches a parameter in its defined shape.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> Matches a generic type's erasure against the provided type.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> ElementMatchers.erasure(TypeDescription type) Matches a generic type's erasure against the provided type.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> ElementMatchers.erasure(ElementMatcher<? super TypeDescription> matcher) Converts a matcher for a type description into a matcher for the matched type's erasure.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> Matches an iteration of generic types' erasures against the provided types.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures(Iterable<? extends TypeDescription> types) Matches an iteration of generic types' erasures against the provided types.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures(TypeDescription... type) Matches an iteration of generic types' erasures against the provided types.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher) Applies the provided matchers to an iteration og generic types' erasures.static <T> ElementMatcher.Junction<T> ElementMatchers.failSafe(ElementMatcher<? super T> matcher) Wraps another matcher to assure that an element is not matched in case that the matching causes anException.static <T extends FieldDescription>
ElementMatcher.Junction<T> Matches a field's raw type against the provided matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.fieldType(TypeDescription fieldType) Matches a field's raw type against the provided matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.fieldType(ElementMatcher<? super TypeDescription> matcher) Matches a field's raw type against the provided matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.genericFieldType(Type fieldType) Matches a field's generic type against the provided matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.genericFieldType(TypeDescription.Generic fieldType) Matches a field's generic type against the provided matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.genericFieldType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches a field's generic type against the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasAnnotation(ElementMatcher<? super AnnotationDescription> matcher) Matches a list of annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.hasChild(ElementMatcher<? super ClassLoader> matcher) Matches all class loaders in the hierarchy of the matched class loader against a given matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasClassFileVersionAtLeast(ClassFileVersion classFileVersion) Matches a type to have a minimal class file version.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasClassFileVersionAtMost(ClassFileVersion classFileVersion) Matches a type to have a maximal class file version.static <T extends NamedElement.WithDescriptor>
ElementMatcher.Junction<T> ElementMatchers.hasDescriptor(String descriptor) Matches aNamedElement.WithDescriptor's descriptor against a given value.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperClass(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches a method parameter by its generic type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasMethodName(String internalName) Matches a method against its internal name such that constructors and type initializers are matched appropriately.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasParameters(ElementMatcher<? super Iterable<? extends ParameterDescription>> matcher) Matches aMethodDescriptionby validating that its parameters fulfill a given constraint.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSignature(MethodDescription.SignatureToken token) Only matches method descriptions that yield the provided signature token.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperClass(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperType(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.hasType(ElementMatcher<? super TypeDescription> matcher) Matches a parameter's type by the given matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation(Class<?> type) Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation(TypeDescription type) Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation(ElementMatcher<? super TypeDescription> matcher) Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.is(Annotation annotation) Exactly matches a given annotation as anAnnotationDescription.static <T> ElementMatcher.Junction<T> Matches the given value which can also benullby theObject.equals(Object)method or by a null-check.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.is(Constructor<?> constructor) Exactly matches a given constructor as aMethodDescriptionin its defined shape.static <T extends FieldDescription>
ElementMatcher.Junction<T> Exactly matches a given field as aFieldDescriptionin its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> Exactly matches a given method as aMethodDescriptionin its defined shape.static <T extends TypeDefinition>
ElementMatcher.Junction<T> Exactly matches a given type as aTypeDescription.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.is(FieldDescription.InDefinedShape field) Exactly matches a given field as aFieldDescriptionin its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.is(MethodDescription.InDefinedShape method) Exactly matches a given method or constructor as aMethodDescriptionin its defined shape.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.is(ParameterDescription.InDefinedShape parameter) Exactly matches a given parameter as aParameterDescriptionin its defined shape.static <T extends ModifierReviewable.OfAbstraction>
ElementMatcher.Junction<T> ElementMatchers.isAbstract()Matches aModifierReviewable.OfAbstractionthat isabstract.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isAccessibleTo(Class<?> type) Matches aByteCodeElementthat is accessible to a givenClass.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isAccessibleTo(TypeDescription type) Matches aByteCodeElementthat is accessible to a givenClass.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith(Class<? extends Annotation> type) Matches anAnnotationSourcefor declared annotations.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith(TypeDescription type) Matches anAnnotationSourcefor declared annotations.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith(ElementMatcher<? super TypeDescription> matcher) Matches anAnnotationSourcefor declared annotations.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isAnnotation()Matches aTypeDescriptionthat is an annotation type.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.isArray()Matches a type if it is an array type.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.isBootstrapClassLoader()Matches exactly the bootstrapClassLoader.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isBridge()Matches aMethodDescriptionthat is a bridge.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.isChildOf(ClassLoader classLoader) Matches any class loader that is either the given class loader or a child of the given class loader.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isClone()Only matches theObject.clone()method, also if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isConstructor()Only matches method descriptions that represent aConstructor.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy(Class<?> type) Matches aByteCodeElementfor being declared by a givenClass.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy(TypeDescription type) Matches aByteCodeElementfor being declared by a givenTypeDescription.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy(ElementMatcher<? super TypeDescription> matcher) Matches aByteCodeElementfor being declared by aTypeDescriptionthat is matched by the given matcher.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric(Type type) Matches aByteCodeElementfor being declared by a given genericType.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric(TypeDescription.Generic type) Matches aByteCodeElementfor being declared by a givenTypeDescription.Generic.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) Matches aByteCodeElementfor being declared by aTypeDescription.Genericthat is matched by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultConstructor()Matches a default constructor, i.e.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultFinalizer()Only matches theObject.finalize()method if it was not overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isDefaultMethod()Only matches Java 8 default methods.static <T extends ModifierReviewable.OfEnumeration>
ElementMatcher.Junction<T> ElementMatchers.isEnum()Matches aModifierReviewable.OfEnumerationthat is anenumor a field holding an enum.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isEquals()Only matches theObject.equals(Object)method, also if it was overridden.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.isExtensionClassLoader()Matches exactly the extensionClassLoader.static <T extends ModifierReviewable>
ElementMatcher.Junction<T> ElementMatchers.isFinal()Matches aModifierReviewablethat isfinal.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isFinalizer()Only matches theObject.finalize()method, even if it was overridden.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter(Type type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter(TypeDescription.Generic type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter(Type type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter(TypeDescription.Generic type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericSetter(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any Java bean setter method which takes an argument that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter()Matches any Java bean getter method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> An element matcher that matches any getter for the given property.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter(TypeDescription type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isHashCode()Only matches theObject.hashCode()method, also if it was overridden.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isInterface()Matches aTypeDescriptionthat is an interface.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isMain()Matches a Java main method as an application entry point.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.isMandated()Matches a parameter description for amandatedparameter.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isMethod()Only matches method descriptions that represent aMethod.static <T extends NamedElement.WithOptionalName>
ElementMatcher.Junction<T> ElementMatchers.isNamed()Matches aNamedElement.WithOptionalNamefor having an explicit name.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isNative()Matches aMethodDescriptionthat isnative.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom(Class<?> type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom(TypeDescription type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom(ElementMatcher<? super TypeDescription> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric(Type type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric(TypeDescription.Generic type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFromGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isPackagePrivate()Matches aModifierReviewablethat is package-private.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.isParentOf(ClassLoader classLoader) Matches any class loader that is either the given class loader or a parent of the given class loader.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.isPrimitive()Matches a type if it is primitive.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isPrivate()Matches aModifierReviewablethat isprivate.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isProtected()Matches aModifierReviewablethat isprotected.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isPublic()Matches aModifierReviewablethat ispublic.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.isRecord()Matches a type if it is a record type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter()Matches any Java bean setter method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> An element matcher that matches any setter for the given property.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter(TypeDescription type) Matches any Java bean setter method which takes an argument the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean setter method which takes an argument that matches the supplied matcher.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isStatic()Matches aModifierReviewablethat isstatic.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isStrict()Matches aMethodDescriptionthat isstrictfp.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSubTypeOf(Class<?> type) Matches any type description that is a subtype of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSubTypeOf(TypeDescription type) Matches any type description that is a subtype of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSuperTypeOf(Class<?> type) Matches any type description that is a super type of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSuperTypeOf(TypeDescription type) Matches any type description that is a super type of the given type.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSynchronized()Matches aMethodDescriptionthat issynchronized.static <T extends ModifierReviewable>
ElementMatcher.Junction<T> ElementMatchers.isSynthetic()Matches aModifierReviewablethat is synthetic.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.isSystemClassLoader()Matches exactly the systemClassLoader.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isToString()Only matches theObject.toString()method, also if it was overridden.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.isTransient()Matches atransientfield.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isTypeInitializer()Only matches method descriptions that represent aClasstype initializer.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isVarArgs()Matches aMethodDescriptionthat is a var-args.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.isVariable(String symbol) Matches a type variable with the given name.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.isVariable(ElementMatcher<? super NamedElement> matcher) Matches a type variable with the given name.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isVirtual()Matches any method that is virtual, i.e.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isVisibleTo(Class<?> type) Matches aByteCodeElementthat is visible to a givenClass.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isVisibleTo(TypeDescription type) Matches aByteCodeElementthat is visible to a givenTypeDescription.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.isVolatile()Matches avolatilefield.static <T> ElementMatcher.Junction<T> NullMatcher.make()Returns a matcher that only matchesnull.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameContains(String infix) Matches aNamedElementfor an infix of its name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameContainsIgnoreCase(String infix) Matches aNamedElementfor an infix of its name.static <T extends NamedElement>
ElementMatcher.Junction<T> Matches aNamedElementfor its exact name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.namedIgnoreCase(String name) Matches aNamedElementfor its name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.namedOneOf(String... names) Matches aNamedElementfor its membership of a set.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameEndsWith(String suffix) Matches aNamedElementfor its name's suffix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameEndsWithIgnoreCase(String suffix) Matches aNamedElementfor its name's suffix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameMatches(String regex) Matches aNamedElementname against a regular expression.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameStartsWith(String prefix) Matches aNamedElementfor its name's prefix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameStartsWithIgnoreCase(String prefix) Matches aNamedElementfor its name's prefix.static <T> ElementMatcher.Junction<T> ElementMatchers.none()Creates a matcher that always returnsfalse.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.noneOf(Annotation... value) Creates a matcher that matches none of the given annotations asAnnotationDescriptions by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> Creates a matcher that matches none of the given objects by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> Creates a matcher that matches none of the given objects by theObject.equals(Object)method.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.noneOf(Constructor<?>... value) Creates a matcher that matches none of the given constructors asMethodDescriptions by theObject.equals(Object)method.static <T extends FieldDescription>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given methods asFieldDescriptions by theObject.equals(Object)method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given methods asMethodDescriptions by theObject.equals(Object)method.static <T extends TypeDefinition>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given types asTypeDescriptions by theObject.equals(Object)method.static <T> ElementMatcher.Junction<T> ElementMatchers.not(ElementMatcher<? super T> matcher) Inverts another matcher.static <T> ElementMatcher.Junction<T> BooleanMatcher.of(boolean matches) Returns an element matcher that returns the provided result.static <T extends MethodDescription>
ElementMatcher.Junction<T> MethodSortMatcher.of(MethodSortMatcher.Sort sort) Returns an element matcher that matches a specific sort of method description.static <T extends ModifierReviewable>
ElementMatcher.Junction<T> ModifierMatcher.of(ModifierMatcher.Mode mode) Returns a new element matcher that matches an element by its modifier.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.ofSort(TypeDefinition.Sort sort) Matches generic type descriptions of the given sort.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher) Matches generic type descriptions of the given sort.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.ofType(ElementMatcher<? super TypeDescription> matcher) Matches a class loader's type unless it is the bootstrap class loader which is never matched.<U extends V>
ElementMatcher.Junction<U> ElementMatcher.Junction.AbstractBase.or(ElementMatcher<? super U> other) Creates a disjunction where either this matcher or theothermatcher must be matched in order to constitute a successful match.<U extends S>
ElementMatcher.Junction<U> ElementMatcher.Junction.or(ElementMatcher<? super U> other) Creates a disjunction where either this matcher or theothermatcher must be matched in order to constitute a successful match.static <T extends MethodDescription>
ElementMatcher.Junction<T> MatchesMethodDescriptions that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns(TypeDescription type) MatchesMethodDescriptions that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns(ElementMatcher<? super TypeDescription> matcher) Matches a method's return type's erasure by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric(Type type) MatchesMethodDescriptions that return a given generic type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric(TypeDescription.Generic type) MatchesMethodDescriptions that returns a givenTypeDescription.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescriptions that match a matched method's return type.static <T extends JavaModule>
ElementMatcher.Junction<T> ElementMatchers.supportsModules()Matches a module if it exists, i.e.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument(int index, Class<?> type) MatchesMethodDescriptions that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument(int index, TypeDescription type) MatchesMethodDescriptions that define a given type erasure as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument(int index, ElementMatcher<? super TypeDescription> matcher) MatchesMethodDescriptions that define a type erasure as a parameter at the given index that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(int length) Matches aMethodDescriptionby the number of its parameters.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(Class<?>... type) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(Iterable<? extends TypeDescription> types) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(TypeDescription... type) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(ElementMatcher<? super Iterable<? extends TypeDescription>> matchers) Matches aMethodDescriptionby applying an iterable collection of element matcher on any parameter'sTypeDescription.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument(int index, Type type) MatchesMethodDescriptions that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument(int index, TypeDescription.Generic type) MatchesMethodDescriptions that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument(int index, ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescriptions that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments(Type... type) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments(List<? extends TypeDefinition> types) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments(TypeDefinition... type) Matches a method description that takes the provided generic arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matchers) Matches aMethodDescriptionby applying an iterable collection of element matcher on any parameter'sTypeDescription.Generic.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesNoArguments()Matches aMethodDescriptionwith no parameters.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.targetsElement(ElementType elementType) Matches if an annotation can target a given element type.static <T> ElementMatcher.Junction<Iterable<? extends T>> ElementMatchers.whereAny(ElementMatcher<? super T> matcher) Matches an iterable by assuring that at least one element of the iterable collection matches the provided matcher.static <T> ElementMatcher.Junction<Iterable<? extends T>> ElementMatchers.whereNone(ElementMatcher<? super T> matcher) Matches an iterable by assuring that no element of the iterable collection matches the provided matcher.