net.bytebuddy.matcher.ElementMatcher s.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that matches the annotation's type for being equal to the given type.The expected annotation type. type)Matches if an annotation is of a given type. |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that matches the annotation's type for being equal to the given type.The expected annotation type. type)Matches if an annotation is of a given type. |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that matches the annotation's type.The matcher to match the annotation's type against. matcher)Matches if an annotation's type matches the supplied matcher. |
| public static < The type of the matched object. T> ElementMatcher. | |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)
Creates a matcher that matches any of the given objects by the |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. values)
Creates a matcher that matches any of the given objects by the |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches any of the given types as |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches any of the given constructors as |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches any of the given methods as |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches any of the given fields as |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches any of the given annotations as |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that stores the results of a previous matching in the supplied map.The actual matcher for which the results are cached. matcher, ConcurrentMap<? super T, Boolean> The map for storing results of previously matched elements. map)Wraps another matcher but caches the result of previously matched elements. |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that stores the results of a previous matching in the supplied map.The actual matcher for which the results are cached. matcher, int The maximum amount of elements that are stored in the cache. Must be a positive number. evictionSize)Wraps another matcher but caches the result of previously matched elements. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by its declaration of throwing a checked exception.The type of the exception that should be declared by the method to be matched. exceptionType)Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by its declaration of throwing a checked exception.The type of the exception that should be declared by the method to be matched. exceptionType)Matches a |
| public static < The type of the matched object. T extends AnnotationSource> ElementMatcher. | Returns: A matcher that validates that an annotated element is annotated with an annotation that matches the givenmatcher.A matcher to apply on any declared annotation of the matched annotated element. matcher)Matches an |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches any method that exactly matches the provided exception.The exception type that is matched. exceptionType)Matches a method that declares the given generic exception type as a (erased) exception type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches any method that exactly matches the provided exception.The exception type that is matched. exceptionType)Matches a method that declares the given generic exception type as a (erased) exception type. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches any type where another matcher is matched positively on at least on declared field.The matcher that is applied onto each declared field. matcher)Matches a type by another matcher that is applied on any of its declared fields. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches any method that exactly matches the provided generic exception.The generic exception type that is matched exactly. exceptionType)Matches a method that declares the given generic exception type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches any method that exactly matches the provided generic exception.The generic exception type that is matched exactly. exceptionTypeMatches a method that declares the given generic exception type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that applies the provided matcher to a method's generic exception types.The exception matcher to apply onto the matched method's generic exceptions. matcher)Matches a method's generic exception types against the provided matcher. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches any type where another matcher is matched positively on at least on declared methods.The matcher that is applied onto each declared method. matcher)Matches a type by another matcher that is applied on any of its declared methods. |
| public static < The matched object's type. T extends FieldDescription> ElementMatcher. | Returns: A matcher that matches a matched field's defined shape.The matcher to apply to the matched field's defined shape. matcher)Matches a field in its defined shape. |
| public static < The matched object's type. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a matched method's defined shape.The matcher to apply to the matched method's defined shape. matcher)Matches a method in its defined shape. |
| public static < The matched object's type. T extends ParameterDescription> ElementMatcher. | Returns: A matcher that matches a matched parameter's defined shape.The matcher to apply to the matched parameter's defined shape. matcher)Matches a parameter in its defined shape. |
| public static < The type of the matched object. T extends TypeDescription. | |
| public static < The type of the matched object. T extends TypeDescription. | Returns: A matcher that matches a generic type's raw type against the provided non-generic type.The type to match a generic type's erasure against. type)Matches a generic type's erasure against the provided type. |
| public static < The type of the matched object. T extends TypeDescription. | Returns: A type matcher for a generic type that matches the matched type's raw type against the given type description matcher.The matcher to match the matched object's raw type against. matcher)Converts a matcher for a type description into a matcher for the matched type's erasure. |
| public static < The type of the matched object. T extends Iterable | |
| public static < The type of the matched object. T extends Iterable | Returns: A matcher that matches an iteration of generic types' raw types against the provided non-generic types.The types to match. type)Matches an iteration of generic types' erasures against the provided types. |
| public static < The type of the matched object. T extends Iterable | Returns: A matcher that matches an iteration of generic types' raw types against the provided non-generic types.The types to match. types)Matches an iteration of generic types' erasures against the provided types. |
| public static < The type of the matched object. T extends Iterable | Returns: A matcher that matches an iteration of generic types' raw types against the provided matcher.The matcher to apply at the erased types. matcher)Applies the provided matchers to an iteration og generic types' erasures. |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that returnsfalse in case that the given matcher throws an exception.The element matcher that potentially throws an exception. matcher)Wraps another matcher to assure that an element is not matched in case that the matching causes an |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher matching the provided field type.The field type to match. fieldType)Matches a field's raw type against the provided matcher. |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher matching the provided field type.The matcher to apply to the field's type. matcher)Matches a field's raw type against the provided matcher. |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher matching the provided field type.The field type to match. fieldType)Matches a field's generic type against the provided matcher. |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher matching the provided field type.The field type to match. fieldTypeMatches a field's generic type against the provided matcher. |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher matching the provided field type.The matcher to apply to the field's type. matcher)Matches a field's generic type against the provided matcher. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches a list of inherited annotation by a given matcher.A matcher to apply onto a list of inherited annotations. matcher)Matches a list of annotations by a given matcher on a type that declared these annotations or inherited them from its super classes. |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that matches all class loaders in the hierarchy of the matched class loader.The matcher to apply to all class loaders in the hierarchy of the matched class loader. matcher)Matches all class loaders in the hierarchy of the matched class loader against a given matcher. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches a type description by its class file version.The minimal class file version to match. classFileVersion)Matches a type to have a minimal class file version. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches a type description by its class file version.The maximal class file version to match. classFileVersion)Matches a type to have a maximal class file version. |
| public static < The type of the matched object. T extends NamedElement. | Returns: A matcher for the givendescriptor.The expected descriptor. descriptor)Matches a |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that declares a super class that matches the provided matcher.The type to be checked for being a super class of the matched type. matcher)Matches any type description that declares a super class (but not interface) that matches the provided matcher. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that declares a super type that matches the provided matcher.The type to be checked for being a super type of the matched type. matcher)Matches any type description that declares a super type that matches the provided matcher. |
| public static < The type of the matched object. T extends ParameterDescription> ElementMatcher. | Returns: A matcher that matches the matched parameter's generic type.The matcher to apply to a parameter's generic type. matcher)Matches a method parameter by its generic type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher for a method with the provided internal name.The internal name of the method. internalName)Matches a method against its internal name such that constructors and type initializers are matched appropriately. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description's parameters against the given constraint.The matcher to apply for validating the parameters. matcher)Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher for a method with the provided signature token.The signature token to match against. tokenOnly matches method descriptions that yield the provided signature token. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that declares a super class that matches the provided matcher.The type to be checked for being a super class of the matched type. matcher)Matches any type description that declares a super class (but not interface) that matches the provided matcher. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that declares a super type that matches the provided matcher.The type to be checked for being a super type of the matched type. matcher)Matches any type description that declares a super type that matches the provided matcher. |
| public static < The type of the matched object. T extends ParameterDescription> ElementMatcher. | Returns: A matcher that matches a parameter's type by the given matcher.The matcher to apply to the parameter's type. matcher)Matches a parameter's type by the given matcher. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any inherited annotation by their type.The annotation type to be matched. type)Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any inherited annotation by their type.The annotation type to be matched. type)Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any inherited annotation by a given matcher.A matcher to apply onto the inherited annotations. matcher)Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes. |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that matches an exact value.The value that is to be matched. value)Matches the given value which can also be |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given field in its defined shape.The field to match by its description field)Exactly matches a given field as a |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given field in its defined shape.The field to match by its description fieldExactly matches a given field as a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given method in its defined shape.The method to match by its description method)Exactly matches a given method as a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given constructor in its defined shape.The constructor to match by its description constructor)Exactly matches a given constructor as a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given method or constructor in its defined shape.The method to match by its description methodExactly matches a given method or constructor as a |
| public static < The type of the matched object. T extends ParameterDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given parameter in its defined shape.The parameter to match by its description parameterExactly matches a given parameter as a |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: An element matcher that exactly matches the given type.The type to match by its description type)Exactly matches a given type as a |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: An element matcher that exactly matches the given annotation.The annotation to match by its description. annotation)Exactly matches a given annotation as an |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for aabstract modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for a byte code element to be accessible to a giventype.The type that a matched byte code element is expected to be accessible to. type)Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for a byte code element to be accessible to a giventype.The type that a matched byte code element is expected to be accessible to. type)Matches a |
| public static < The type of the matched object. T extends AnnotationSource> ElementMatcher. | Returns: A matcher that validates that an annotated element is annotated with an annotation oftype.The annotation type to match against. type)Matches an |
| public static < The type of the matched object. T extends AnnotationSource> ElementMatcher. | Returns: A matcher that validates that an annotated element is annotated with an annotation oftype.The annotation type to match against. type)Matches an |
| public static < The type of the matched object. T extends AnnotationSource> ElementMatcher. | Returns: A matcher that validates that an annotated element is annotated with an annotation of a type that matches the givenmatcher.The matcher to apply to any annotation's type found on the matched annotated element. matcher)Matches an |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher for an annotation type.Matches a |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that determines if a type is an array type.Matches a type if it is an array type. |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that only matches the bootstrap class loader.Matches exactly the bootstrap |
| public static < The type of the matched object. T extends ModifierReviewable. | |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that matches the given class loader and any class loader that is a child of the given class loader.The class loader of which child class loaders are matched. classLoader)Matches any class loader that is either the given class loader or a child of the given class loader. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches theObject#clone() method.Only matches the |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches method descriptions that represent a Java constructor.Only matches method descriptions that represent a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by the giventype.The type that is expected to declare the matched byte code element. type)Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by the giventype.The type that is expected to declare the matched byte code element. type)Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by a type matched by the givenmatcher.A matcher for the declaring type of the matched byte code element as long as it
is not matcher)null.Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by the giventype.The type that is expected to declare the matched byte code element. type)Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by the giventype.The type that is expected to declare the matched byte code element. typeMatches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for byte code elements being declared by a type matched by the givenmatcher.A matcher for the declaring type of the matched byte code element as long as it is not matcher)null.Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a default constructor.Matches a default constructor, i.e. a constructor without arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches a non-overriddenObject#finalize() method.Only matches the |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches Java 8 default methods.Only matches Java 8 default methods. |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for an enum.Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches theObject#equals(Object) method.Only matches the |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that only matches the extension class loader.Matches exactly the extension |
| public static < The type of the matched object. T extends ModifierReviewable> ElementMatcher. | Returns: A matcher for afinal modifier reviewable.Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches theObject#finalize() method.Only matches the |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a getter method with the given type.The required getter type. type)Matches any Java bean getter method which returns the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a getter method with the given type.The required getter type. typeMatches any Java bean getter method which returns the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a getter method with a return type that matches the supplied matcher.A matcher to be allied to a getter method's argument type. matcher)Matches any Java bean getter method which returns a value with a type matches the supplied matcher. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches any setter method.The required setter type. type)Matches any Java bean setter method which takes an argument the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a setter method with the specified argument type.The required setter type. typeMatches any Java bean setter method which takes an argument the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a setter method with an argument type that matches the supplied matcher.A matcher to be allied to a setter method's argument type. matcher)Matches any Java bean setter method which takes an argument that matches the supplied matcher. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a getter method with the given type.The required getter type. type)Matches any Java bean getter method which returns the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a getter method with a return type that matches the supplied matcher.A matcher to be allied to a getter method's argument type. matcher)Matches any Java bean getter method which returns a value with a type matches the supplied matcher. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches theObject#hashCode() method.Only matches the |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a Java main method.Matches a Java main method as an application entry point. |
| public static < The type of the matched object. T extends ParameterDescription> ElementMatcher. | Returns: A matcher for amandated parameter.Matches a parameter description for a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches method descriptions that represent a Java method.Only matches method descriptions that represent a |
| public static < The type of the matched object. T extends NamedElement. | Returns: An element matcher that checks if the matched optionally named element has an explicit name.Matches a |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for anative method description.Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.The super type of interest for which to check if it declares a method with the same signature as the matched method. type)Matches any virtual method with a signature that is compatible to a method that is declared the supplied type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.The super type of interest for which to check if it declares a method with the same signature as the matched method. type)Matches any virtual method with a signature that is compatible to a method that is declared the supplied type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.A matcher for a method's declaring type that needs to be matched if that type declares a method with the same signature
as the matched method. 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. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.The super type of interest for which to check if it declares a method with the same signature as the matched method. type)Matches any virtual method with a signature that is compatible to a method that is declared the supplied type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.The super type of interest for which to check if it declares a method with the same signature as the matched method. typeMatches any virtual method with a signature that is compatible to a method that is declared the supplied type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks a method's signature equality for any method declared by the declaring type.A matcher for a method's declaring type that needs to be matched if that type declares a method with the same signature
as the matched method. 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. |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for a package-private modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that matches the given class loader and any class loader that is a parent of the given class loader.The class loader of which parent class loaders are matched. classLoader)Matches any class loader that is either the given class loader or a parent of the given class loader. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that determines if a type is primitive.Matches a type if it is primitive. |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for aprivate modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for aprotected modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for apublic modifier reviewable.Matches a |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that determines if a type is a record type.Matches a type if it is a record type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a setter method with the specified argument type.The required setter type. type)Matches any Java bean setter method which takes an argument the given type. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a setter method with an argument type that matches the supplied matcher.A matcher to be allied to a setter method's argument type. matcher)Matches any Java bean setter method which takes an argument that matches the supplied matcher. |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for astatic modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for astrictfp method description.Matches a |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that represents a sub type of the given type.The type to be checked for being a subtype of the matched type. type)Matches any type description that is a subtype of the given type. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that represents a sub type of the given type.The type to be checked for being a subtype of the matched type. type)Matches any type description that is a subtype of the given type. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that represents a super type of the given type.The type to be checked for being a subtype of the matched type. type)Matches any type description that is a super type of the given type. |
| public static < The type of the matched object. T extends TypeDescription> ElementMatcher. | Returns: A matcher that matches any type description that represents a super type of the given type.The type to be checked for being a subtype of the matched type. type)Matches any type description that is a super type of the given type. |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for asynchronized method description.Matches a |
| public static < The type of the matched object. T extends ModifierReviewable> ElementMatcher. | Returns: A matcher for a synthetic modifier reviewable.Matches a |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that only matches the system class loader.Matches exactly the system |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches theObject#toString() method.Only matches the |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that only matches method descriptions that represent the type initializer.Only matches method descriptions that represent a |
| public static < The type of the matched object. T extends ModifierReviewable. | Returns: A matcher for a var-args method description.Matches a |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches type variables with the given name.The name of the type variable to be match. symbol)Matches a type variable with the given name. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches type variables with the given name.A matcher for the type variable's name. matcher)Matches a type variable with the given name. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher for virtual methods.Matches any method that is virtual, i.e. non-constructors that are non-static and non-private. |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for a byte code element to be visible to a giventype.The type that a matched byte code element is expected to be visible to. type)Matches a |
| public static < The type of the matched object. T extends ByteCodeElement> ElementMatcher. | Returns: A matcher for a byte code element to be visible to a giventype.The type that a matched byte code element is expected to be visible to. type)Matches a |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's infix.The expected infix of the name. infix)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's infix.The expected infix of the name. infix)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's exact name.The expected name. name)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name.The expected name. name)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher which matches if the element's name is found in the set.The set of expected names. names)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's suffix.The expected name's suffix. suffix)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's suffix.The expected name's suffix. suffix)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's against the given regular expression.The regular expression to match the name against. regex)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's prefix.The expected name's prefix. prefix)Matches a |
| public static < The type of the matched object. T extends NamedElement> ElementMatcher. | Returns: An element matcher for a named element's name's prefix.The expected name's prefix. prefix)Matches a |
| public static < The type of the matched object. T> ElementMatcher. | |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given objects by the |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. values)Creates a matcher that matches none of the given objects by the |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given types as |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given constructors as |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given methods as |
| public static < The type of the matched object. T extends FieldDescription> ElementMatcher. | Returns: A matcher that checks for the equality with none of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given methods as |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that checks for the equality with any of the given objects.The input values to be compared against. value)Creates a matcher that matches none of the given annotations as |
| public static < The type of the matched object. T> ElementMatcher. | Returns: An inverted version of the givenmatcher.The matcher to invert. matcher)Inverts another matcher. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches generic types of the given sort.The generic type sort to match. sortMatches generic type descriptions of the given sort. |
| public static < The type of the matched object. T extends TypeDefinition> ElementMatcher. | Returns: A matcher that matches generic types of the given sort.A matcher for a generic type's sort. matcher)Matches generic type descriptions of the given sort. |
| public static < The type of the matched object. T extends ClassLoader> ElementMatcher. | Returns: A matcher that matches the class loader's type.The matcher to apply to the class loader's type. matcher)Matches a class loader's type unless it is the bootstrap class loader which is never matched. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given return type for a method description.The raw type the matched method is expected to return. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given return type for a method description.The raw type the matched method is expected to return. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches the matched method's return type's erasure.The matcher to apply to a method's return type's erasure. matcher)Matches a method's return type's erasure by the given matcher. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given generic return type for a method description.The generic type the matched method is expected to return. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given return type for a method description.The type the matched method is expected to return. typeMatches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given return type against anothermatcher.A matcher to apply onto a matched method's return type. matcher)Matches |
| public static < The type of the matched object. T extends JavaModule> ElementMatcher. | Returns: A matcher that validates a module's existence.Matches a module if it exists, i.e. not |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given argument type for a method description.The index of the parameter. index, Class<?> The erasure of the type the matched method is expected to define as a parameter type. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given argument type for a method description.The index of the parameter. index, TypeDescription The erasure of the type the matched method is expected to define as a parameter type. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given argument type for a method description.The index of the parameter. index, ElementMatcher<? super TypeDescription> A matcher to apply to the argument at the specified index. matcher)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's raw parameter types against the supplied arguments.The arguments to match against the matched method. type)Matches a method description that takes the provided raw arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's raw parameter types against the supplied arguments.The arguments to match against the matched method. type)Matches a method description that takes the provided raw arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's raw parameter types against the supplied arguments.The arguments to match against the matched method. types)Matches a method description that takes the provided raw arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by applying another element matcher onto each parameter's type.The matcher that are applied onto the parameter types of the matched method description. matchers)Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by the number of its parameters.The expected length. length)Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given generic return type for a method description.The index of the parameter. index, Type The generic type the matched method is expected to define as a parameter type. type)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given generic return type for a method description.The index of the parameter. index, TypeDescription.The generic type the matched method is expected to define as a parameter type. typeMatches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: An element matcher that matches a given generic return type for a method description.The index of the parameter. index, ElementMatcher<? super TypeDescription.A matcher for the generic type the matched method is expected to define as a parameter type. matcher)Matches |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's generic parameter types against the supplied arguments.The arguments to match against the matched method. type)Matches a method description that takes the provided generic arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's generic parameter types against the supplied arguments.The arguments to match against the matched method. type)Matches a method description that takes the provided generic arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A method matcher that matches a method's generic parameter types against the supplied arguments.The arguments to match against the matched method. types)Matches a method description that takes the provided generic arguments. |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by applying another element matcher onto each parameter's type.The matcher that are applied onto the parameter types of the matched method description. matchers)Matches a |
| public static < The type of the matched object. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches a method description by the number of its parameters.Matches a |
| public static < The type of the matched object. T extends AnnotationDescription> ElementMatcher. | Returns: A matcher that matches annotations that target an element type.The element type we target. elementType)Matches if an annotation can target a given element type. |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that matches an iterable if at least one element matches the provided matcher.The matcher to apply to each element. matcher)Matches an iterable by assuring that at least one element of the iterable collection matches the provided matcher. |
| public static < The type of the matched object. T> ElementMatcher. | Returns: A matcher that matches an iterable if no element matches the provided matcher.The matcher to apply to each element. matcher)Matches an iterable by assuring that no element of the iterable collection matches the provided matcher. |