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
<? super List<JavaConstant>> MemberSubstitution.Replacement.ForDynamicInvocation.argumentsMatcher
A matcher for an invokedynamic instruction's constant arguments.private final ElementMatcher.Junction
<? super List<JavaConstant>> MemberSubstitution.Replacement.ForDynamicInvocation.Factory.argumentsMatcher
A matcher for an invokedynamic instruction's constant arguments.private final ElementMatcher.Junction
<? super List<? extends JavaConstant>> MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.argumentsMatcher
A matcher for an invokedynamic instruction's constant arguments.private final ElementMatcher.Junction
<FieldDescription.InDefinedShape> MemberRemoval.fieldMatcher
The matcher that decides upon field removal.private final ElementMatcher.Junction
<FieldDescription.InDefinedShape> MemberRemoval.MemberRemovingClassVisitor.fieldMatcher
The matcher that determines field removal.private final ElementMatcher.Junction
<? super TypeDescription> TypeReferenceAdjustment.filter
A filter for excluding types from type reference analysis.private final ElementMatcher.Junction
<MethodDescription> MemberRemoval.MemberRemovingClassVisitor.methodMatcher
The matcher that determines method removal.private final ElementMatcher.Junction
<MethodDescription> MemberRemoval.methodMatcher
The matcher that decides upon method removal.private final ElementMatcher.Junction
<? super String> MemberSubstitution.Replacement.ForDynamicInvocation.Factory.nameMatcher
A matcher for an invokedynamic instruction's name.private final ElementMatcher.Junction
<? super String> MemberSubstitution.Replacement.ForDynamicInvocation.nameMatcher
A matcher for an invokedynamic instruction's name.private final ElementMatcher.Junction
<? super String> MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.nameMatcher
A matcher for an invokedynamic instruction's name.private final ElementMatcher.Junction
<? super JavaConstant.MethodType> MemberSubstitution.Replacement.ForDynamicInvocation.Factory.typeMatcher
A matcher for an invokedynamic instruction's result type.private final ElementMatcher.Junction
<? super JavaConstant.MethodType> MemberSubstitution.Replacement.ForDynamicInvocation.typeMatcher
A matcher for an invokedynamic instruction's result type.private final ElementMatcher.Junction
<? super JavaConstant.MethodType> MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.typeMatcher
A matcher for an invokedynamic instruction's result type.Constructors in net.bytebuddy.asm with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprotected
Factory
(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution.Factory substitutionFactory) Creates a factory for a replacement for a replacement for an invokedynamic instruction.protected
ForDynamicInvocation
(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution substitution) Creates a replacement for an invokedynamic instruction.protected
ForMatchedDynamicInvocation
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<? extends JavaConstant>> argumentsMatcher) Creates a member substitution for an invokedynamic instruction.protected
MemberRemoval
(ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher.Junction<MethodDescription> methodMatcher) Creates a new member removal instance.protected
MemberRemovingClassVisitor
(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.protected
TypeReferenceAdjustment
(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 class
An element matcher for aHashCodeAndEqualsPlugin.ValueHandling
annotation.Fields in net.bytebuddy.build declared as ElementMatcher.JunctionModifier and TypeFieldDescriptionprivate final ElementMatcher.Junction
<? super TypeDescription> Plugin.Engine.Default.ignoredTypeMatcher
A matcher for types to exclude from transformation.Constructors in net.bytebuddy.build with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprotected
Default
(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, 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 class
Matches 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 class
A 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.identity
A matcher to determine that a field should be considered by its identity.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> HashCodeMethod.identity
A matcher to determine that a field should be considered by its identity.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> EqualsMethod.ignored
A matcher to filter fields that should not be used for a equality resolution.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> HashCodeMethod.ignored
A matcher to filter fields that should not be used for a hash codes computation.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> ToStringMethod.ignored
A filter that determines what fields to ignore.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> EqualsMethod.nonNullable
A matcher to determine fields of a reference type that cannot benull
.private final ElementMatcher.Junction
<? super FieldDescription.InDefinedShape> HashCodeMethod.nonNullable
A matcher to determine fields of a reference type that cannot benull
.Constructors in net.bytebuddy.implementation with parameters of type ElementMatcher.JunctionModifierConstructorDescriptionprivate
EqualsMethod
(EqualsMethod.SuperClassCheck superClassCheck, EqualsMethod.TypeCompatibilityCheck typeCompatibilityCheck, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> identity, Comparator<? super FieldDescription.InDefinedShape> comparator) Creates a new equals method implementation.private
HashCodeMethod
(HashCodeMethod.OffsetProvider offsetProvider, int multiplier, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> identity) Creates a new hash code method implementation.private
ToStringMethod
(ToStringMethod.PrefixResolver prefixResolver, String start, String end, String separator, String definer, ElementMatcher.Junction<? super FieldDescription.InDefinedShape> ignored) Creates a newtoString
implementation. -
Uses of ElementMatcher.Junction in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher that implement ElementMatcher.JunctionModifier and TypeClassDescriptionclass
AccessibilityMatcher<T extends ByteCodeElement>
An element matcher that validates that a given byte code element is accessible to a given type.class
AnnotationTargetMatcher<T extends AnnotationDescription>
A matcher for annotations that target a given element type.class
AnnotationTypeMatcher<T extends AnnotationDescription>
An element matcher that matches the type of an annotation description.class
ArrayTypeMatcher<T extends TypeDefinition>
Matches an enumeration type.class
An element matcher that returns a fixed result.class
A matcher that remembers the results of previously matching an equal target.static class
A caching matcher with inline cache eviction.class
ClassFileVersionMatcher<T extends TypeDescription>
A matcher to consider if a class file version reaches a given boundary.class
ClassLoaderHierarchyMatcher<T extends ClassLoader>
An element matcher that matches allClassLoader
s in the matched class loaders hierarchy against a given matcher.class
ClassLoaderParentMatcher<T extends ClassLoader>
An element matcher that matches a class loader for being a parent of the given class loader.class
A matcher that matches a given element of a collection.class
CollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>>
An element matcher that matches a collection of types by their erasures.class
A 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.class
An element matcher that matches a given iterable collection to a list of matchers on a per-element basis.class
CollectionSizeMatcher<T extends Iterable<?>>
An element matcher that matches a collection by its size.class
DeclaringAnnotationMatcher<T extends AnnotationSource>
An element matcher that matches the list of annotations that are provided by an annotated element.class
DeclaringFieldMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares fields of a given property.class
DeclaringMethodMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares methods of a given property.class
DeclaringTypeMatcher<T extends DeclaredByType>
An element matcher that matches the declaring type of another element, only if this element is actually declared in a type.class
DefinedShapeMatcher<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.class
DescriptorMatcher<T extends NamedElement.WithDescriptor>
An element matcher that matches a Java descriptor.static class
A base implementation ofElementMatcher.Junction
.static class
A conjunction matcher which only matches an element if both represented matchers constitute a match.static class
A disjunction matcher which matches an element against matchers in order to constitute a successful match.static class
An abstract base implementation that rejects null values.class
An element matcher that checks an object's equality to another object.class
ErasureMatcher<T extends TypeDefinition>
An element matcher that matches its argument'sTypeDescription.Generic
raw type against the given matcher for aTypeDescription
.class
A fail-safe matcher catches exceptions that are thrown by a delegate matcher and returns an alternative value.class
FieldTypeMatcher<T extends FieldDescription>
An element matcher that matches a field's type.class
HasSuperClassMatcher<T extends TypeDescription>
An element matcher that matches a super class.class
HasSuperTypeMatcher<T extends TypeDescription>
An element matcher that matches a super type.class
InheritedAnnotationMatcher<T extends TypeDescription>
An element matcher that matches the list of inherited annotations of a type description.class
An element matcher that matches an object's type.class
IsNamedMatcher<T extends NamedElement.WithOptionalName>
An element matcher that matches a named element only if is explicitly named.protected static class
A resolved matcher of a latent field matcher for a field token.protected static class
A resolved matcher of a latent method matcher for a method token.class
MethodExceptionTypeMatcher<T extends MethodDescription>
An element matcher that matches the exceptions that are declared by a method.class
MethodOverrideMatcher<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.class
MethodParametersMatcher<T extends MethodDescription>
An element matcher that matches a method's parameters.class
MethodParameterTypeMatcher<T extends ParameterDescription>
An element matcher that matches a method's parameter's type.class
MethodParameterTypesMatcher<T extends ParameterList<?>>
An element matcher that matches a method's parameter types.class
MethodReturnTypeMatcher<T extends MethodDescription>
An element matcher that matches its argument's return type against a given type matcher.class
MethodSortMatcher<T extends MethodDescription>
Matches a method description by its general characteristics which are represented as aMethodSortMatcher.Sort
.class
ModifierMatcher<T extends ModifierReviewable>
An element matcher that matches a byte code element by its modifiers.class
NameMatcher<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.class
An element matcher that reverses the matching result of another matcher.class
NullMatcher<T>
An element matcher that matches thenull
value.class
PrimitiveTypeMatcher<T extends TypeDefinition>
Matches a primitive type.class
RecordMatcher<T extends TypeDefinition>
Matches a record.class
SignatureTokenMatcher<T extends MethodDescription>
Matches a method description's signature token against another matcher.class
An element matcher that compares two strings by a given pattern which is characterized by aStringMatcher.Mode
.class
An element matcher which checks if a string is in a set of strings.class
SubTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's subtype.class
SuperTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's super type.class
TypeSortMatcher<T extends TypeDefinition>
An element matcher that validates that a given generic type description represents a type of a given name.class
VisibilityMatcher<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 theother
matcher 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 theother
matcher 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 asAnnotationDescription
s 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 asMethodDescription
s by theObject.equals(Object)
method.static <T extends FieldDescription>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given fields asFieldDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given methods asMethodDescription
s by theObject.equals(Object)
method.static <T extends TypeDefinition>
ElementMatcher.Junction<T> Creates a matcher that matches any of the given types asTypeDescription
s 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 aMethodDescription
by its capability to throw a given checked exception.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.canThrow
(TypeDescription exceptionType) Matches aMethodDescription
by its capability to throw a given checked exception.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.declaresAnnotation
(ElementMatcher<? super AnnotationDescription> matcher) Matches anAnnotationSource
to 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 aMethodDescription
by 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 benull
by 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 aMethodDescription
in its defined shape.static <T extends FieldDescription>
ElementMatcher.Junction<T> Exactly matches a given field as aFieldDescription
in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> Exactly matches a given method as aMethodDescription
in 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 aFieldDescription
in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.is
(MethodDescription.InDefinedShape method) Exactly matches a given method or constructor as aMethodDescription
in its defined shape.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.is
(ParameterDescription.InDefinedShape parameter) Exactly matches a given parameter as aParameterDescription
in its defined shape.static <T extends ModifierReviewable.OfAbstraction>
ElementMatcher.Junction<T> ElementMatchers.isAbstract()
Matches aModifierReviewable.OfAbstraction
that isabstract
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isAccessibleTo
(Class<?> type) Matches aByteCodeElement
that is accessible to a givenClass
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isAccessibleTo
(TypeDescription type) Matches aByteCodeElement
that is accessible to a givenClass
.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith
(Class<? extends Annotation> type) Matches anAnnotationSource
for declared annotations.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith
(TypeDescription type) Matches anAnnotationSource
for declared annotations.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith
(ElementMatcher<? super TypeDescription> matcher) Matches anAnnotationSource
for declared annotations.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isAnnotation()
Matches aTypeDescription
that 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 aMethodDescription
that 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 aByteCodeElement
for being declared by a givenClass
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy
(TypeDescription type) Matches aByteCodeElement
for being declared by a givenTypeDescription
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy
(ElementMatcher<? super TypeDescription> matcher) Matches aByteCodeElement
for being declared by aTypeDescription
that is matched by the given matcher.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric
(Type type) Matches aByteCodeElement
for being declared by a given genericType
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric
(TypeDescription.Generic type) Matches aByteCodeElement
for being declared by a givenTypeDescription.Generic
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches aByteCodeElement
for being declared by aTypeDescription.Generic
that 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.OfEnumeration
that is anenum
or 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 aModifierReviewable
that 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 aTypeDescription
that 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 amandated
parameter.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.WithOptionalName
for having an explicit name.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isNative()
Matches aMethodDescription
that 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 aModifierReviewable
that 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 aModifierReviewable
that isprivate
.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isProtected()
Matches aModifierReviewable
that isprotected
.static <T extends ModifierReviewable.OfByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isPublic()
Matches aModifierReviewable
that 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 aModifierReviewable
that isstatic
.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isStrict()
Matches aMethodDescription
that 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 aMethodDescription
that issynchronized
.static <T extends ModifierReviewable>
ElementMatcher.Junction<T> ElementMatchers.isSynthetic()
Matches aModifierReviewable
that 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 atransient
field.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isTypeInitializer()
Only matches method descriptions that represent aClass
type initializer.static <T extends ModifierReviewable.ForMethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isVarArgs()
Matches aMethodDescription
that 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 aByteCodeElement
that is visible to a givenClass
.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isVisibleTo
(TypeDescription type) Matches aByteCodeElement
that is visible to a givenTypeDescription
.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.isVolatile()
Matches avolatile
field.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 aNamedElement
for an infix of its name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameContainsIgnoreCase
(String infix) Matches aNamedElement
for an infix of its name.static <T extends NamedElement>
ElementMatcher.Junction<T> Matches aNamedElement
for its exact name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.namedIgnoreCase
(String name) Matches aNamedElement
for its name.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.namedOneOf
(String... names) Matches aNamedElement
for its membership of a set.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameEndsWith
(String suffix) Matches aNamedElement
for its name's suffix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameEndsWithIgnoreCase
(String suffix) Matches aNamedElement
for its name's suffix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameMatches
(String regex) Matches aNamedElement
name against a regular expression.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameStartsWith
(String prefix) Matches aNamedElement
for its name's prefix.static <T extends NamedElement>
ElementMatcher.Junction<T> ElementMatchers.nameStartsWithIgnoreCase
(String prefix) Matches aNamedElement
for 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 asAnnotationDescription
s 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 asMethodDescription
s by theObject.equals(Object)
method.static <T extends FieldDescription>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given methods asFieldDescription
s by theObject.equals(Object)
method.static <T extends MethodDescription>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given methods asMethodDescription
s by theObject.equals(Object)
method.static <T extends TypeDefinition>
ElementMatcher.Junction<T> Creates a matcher that matches none of the given types asTypeDescription
s 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 theother
matcher 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 theother
matcher must be matched in order to constitute a successful match.static <T extends MethodDescription>
ElementMatcher.Junction<T> MatchesMethodDescription
s that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns
(TypeDescription type) MatchesMethodDescription
s 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) MatchesMethodDescription
s that return a given generic type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric
(TypeDescription.Generic type) MatchesMethodDescription
s that returns a givenTypeDescription
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric
(ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescription
s 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) MatchesMethodDescription
s 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) MatchesMethodDescription
s 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) MatchesMethodDescription
s 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 aMethodDescription
by 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 aMethodDescription
by applying an iterable collection of element matcher on any parameter'sTypeDescription
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument
(int index, Type type) MatchesMethodDescription
s 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) MatchesMethodDescription
s 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) MatchesMethodDescription
s 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 aMethodDescription
by applying an iterable collection of element matcher on any parameter'sTypeDescription.Generic
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesNoArguments()
Matches aMethodDescription
with 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.