<U extends V> ElementMatcher.Junction<U> |
ElementMatcher.Junction.AbstractBase.and(ElementMatcher<? super U> other) |
Creates a conjunction where this matcher and the other 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 the other matcher must both be matched in order
to constitute a successful match.
|
static <T extends AnnotationDescription> ElementMatcher.Junction<T> |
ElementMatchers.annotationType(java.lang.Class<? extends java.lang.annotation.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 returns true .
|
static <T extends AnnotationDescription> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.annotation.Annotation... value) |
Creates a matcher that matches any of the given annotations as AnnotationDescription s
by the Object.equals(Object) method.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.Iterable<?> values) |
Creates a matcher that matches any of the given objects by the Object.equals(Object) method.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.Object... value) |
Creates a matcher that matches any of the given objects by the Object.equals(Object) method.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.reflect.Constructor<?>... value) |
Creates a matcher that matches any of the given constructors as MethodDescription s
by the Object.equals(Object) method.
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.reflect.Field... value) |
Creates a matcher that matches any of the given fields as FieldDescription s
by the Object.equals(Object) method.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.reflect.Method... value) |
Creates a matcher that matches any of the given methods as MethodDescription s
by the Object.equals(Object) method.
|
static <T extends TypeDefinition> ElementMatcher.Junction<T> |
ElementMatchers.anyOf(java.lang.reflect.Type... value) |
Creates a matcher that matches any of the given types as TypeDescription s
by the Object.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,
java.util.concurrent.ConcurrentMap<? super T,java.lang.Boolean> map) |
Wraps another matcher but caches the result of previously matched elements.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.canThrow(java.lang.Class<? extends java.lang.Throwable> exceptionType) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.canThrow(TypeDescription exceptionType) |
|
static <T extends AnnotationSource> ElementMatcher.Junction<T> |
ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher) |
Matches an AnnotationSource to declare any annotation
that matches the given matcher.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.declaresException(java.lang.Class<? extends java.lang.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 a another matcher that is applied on any of its declared fields.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.declaresGenericException(java.lang.reflect.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 java.lang.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 a 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> |
ElementMatchers.erasure(java.lang.Class<?> type) |
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 java.lang.Iterable<? extends TypeDescription.Generic>> ElementMatcher.Junction<T> |
ElementMatchers.erasures(java.lang.Class<?>... type) |
Matches an iteration of generic types' erasures against the provided types.
|
static <T extends java.lang.Iterable<? extends TypeDescription.Generic>> ElementMatcher.Junction<T> |
ElementMatchers.erasures(java.lang.Iterable<? extends TypeDescription> types) |
Matches an iteration of generic types' erasures against the provided types.
|
static <T extends java.lang.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 java.lang.Iterable<? extends TypeDescription.Generic>> ElementMatcher.Junction<T> |
ElementMatchers.erasures(ElementMatcher<? super java.lang.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 an Exception .
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.fieldType(java.lang.Class<?> fieldType) |
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(java.lang.reflect.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 java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.hasChild(ElementMatcher<? super java.lang.ClassLoader> matcher) |
Matches all class loaders in the hierarchy of the matched class loader against a given matcher.
|
static <T extends NamedElement.WithDescriptor> ElementMatcher.Junction<T> |
ElementMatchers.hasDescriptor(java.lang.String descriptor) |
|
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(java.lang.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 java.lang.Iterable<? extends ParameterDescription>> matcher) |
Matches a MethodDescription 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(java.lang.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(java.lang.annotation.Annotation annotation) |
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.is(java.lang.Object value) |
Matches the given value which can also be null by the Object.equals(Object) method or
by a null-check.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(java.lang.reflect.Constructor<?> constructor) |
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(java.lang.reflect.Field field) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(java.lang.reflect.Method method) |
|
static <T extends TypeDefinition> ElementMatcher.Junction<T> |
ElementMatchers.is(java.lang.reflect.Type type) |
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(FieldDescription.InDefinedShape field) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(MethodDescription.InDefinedShape method) |
Exactly matches a given method or constructor as a MethodDescription in its defined shape.
|
static <T extends ParameterDescription> ElementMatcher.Junction<T> |
ElementMatchers.is(ParameterDescription.InDefinedShape parameter) |
|
static <T extends ModifierReviewable.OfAbstraction> ElementMatcher.Junction<T> |
ElementMatchers.isAbstract() |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isAccessibleTo(java.lang.Class<?> type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isAccessibleTo(TypeDescription type) |
|
static <T extends AnnotationSource> ElementMatcher.Junction<T> |
ElementMatchers.isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> type) |
|
static <T extends AnnotationSource> ElementMatcher.Junction<T> |
ElementMatchers.isAnnotatedWith(TypeDescription type) |
|
static <T extends AnnotationSource> ElementMatcher.Junction<T> |
ElementMatchers.isAnnotatedWith(ElementMatcher<? super TypeDescription> matcher) |
|
static <T extends TypeDescription> ElementMatcher.Junction<T> |
ElementMatchers.isAnnotation() |
|
static <T extends TypeDefinition> ElementMatcher.Junction<T> |
ElementMatchers.isArray() |
Matches a type if it is an array type.
|
static <T extends java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.isBootstrapClassLoader() |
Matches exactly the bootstrap ClassLoader .
|
static <T extends ModifierReviewable.ForMethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isBridge() |
|
static <T extends java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.isChildOf(java.lang.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 the Object.clone() method, also if it was overridden.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isConstructor() |
Only matches method descriptions that represent a Constructor .
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredBy(java.lang.Class<?> type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredBy(TypeDescription type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredBy(ElementMatcher<? super TypeDescription> matcher) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredByGeneric(java.lang.reflect.Type type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredByGeneric(TypeDescription.Generic type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isDeclaredByGeneric(ElementMatcher<? super TypeDescription.Generic> 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 the Object.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() |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isEquals() |
Only matches the Object.equals(Object) method, also if it was overridden.
|
static <T extends java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.isExtensionClassLoader() |
Matches exactly the extension ClassLoader .
|
static <T extends ModifierReviewable> ElementMatcher.Junction<T> |
ElementMatchers.isFinal() |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isFinalizer() |
Only matches the Object.finalize() method, even if it was overridden.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isGenericGetter(java.lang.reflect.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 an value with a type matches the supplied matcher.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isGenericSetter(java.lang.reflect.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> |
ElementMatchers.isGetter(java.lang.Class<?> type) |
Matches any Java bean getter method which returns the given type.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isGetter(java.lang.String property) |
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 an value with a type matches the supplied matcher.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isHashCode() |
Only matches the Object.hashCode() method, also if it was overridden.
|
static <T extends TypeDescription> ElementMatcher.Junction<T> |
ElementMatchers.isInterface() |
|
static <T extends ParameterDescription> ElementMatcher.Junction<T> |
ElementMatchers.isMandated() |
Matches a parameter description for a mandated parameter.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isMethod() |
Only matches method descriptions that represent a Method .
|
static <T extends NamedElement.WithOptionalName> ElementMatcher.Junction<T> |
ElementMatchers.isNamed() |
|
static <T extends ModifierReviewable.ForMethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isNative() |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isOverriddenFrom(java.lang.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(java.lang.reflect.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() |
|
static <T extends java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.isParentOf(java.lang.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() |
|
static <T extends ModifierReviewable.OfByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isProtected() |
|
static <T extends ModifierReviewable.OfByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.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> |
ElementMatchers.isSetter(java.lang.Class<?> type) |
Matches any Java bean setter method which takes an argument the given type.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isSetter(java.lang.String property) |
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() |
|
static <T extends ModifierReviewable.ForMethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isStrict() |
|
static <T extends TypeDescription> ElementMatcher.Junction<T> |
ElementMatchers.isSubTypeOf(java.lang.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(java.lang.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() |
|
static <T extends ModifierReviewable> ElementMatcher.Junction<T> |
ElementMatchers.isSynthetic() |
|
static <T extends java.lang.ClassLoader> ElementMatcher.Junction<T> |
ElementMatchers.isSystemClassLoader() |
Matches exactly the system ClassLoader .
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isToString() |
Only matches the Object.toString() method, also if it was overridden.
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.isTransient() |
Matches a transient field.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isTypeInitializer() |
Only matches method descriptions that represent a Class type initializer.
|
static <T extends ModifierReviewable.ForMethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.isVarArgs() |
|
static <T extends TypeDefinition> ElementMatcher.Junction<T> |
ElementMatchers.isVariable(java.lang.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(java.lang.Class<?> type) |
|
static <T extends ByteCodeElement> ElementMatcher.Junction<T> |
ElementMatchers.isVisibleTo(TypeDescription type) |
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.isVolatile() |
Matches a volatile field.
|
static <T> ElementMatcher.Junction<T> |
NullMatcher.make() |
Returns a matcher that only matches null .
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameContains(java.lang.String infix) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameContainsIgnoreCase(java.lang.String infix) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.named(java.lang.String name) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.namedIgnoreCase(java.lang.String name) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.namedOneOf(java.lang.String... names) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameEndsWith(java.lang.String suffix) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameEndsWithIgnoreCase(java.lang.String suffix) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameMatches(java.lang.String regex) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameStartsWith(java.lang.String prefix) |
|
static <T extends NamedElement> ElementMatcher.Junction<T> |
ElementMatchers.nameStartsWithIgnoreCase(java.lang.String prefix) |
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.none() |
Creates a matcher that always returns false .
|
static <T extends AnnotationDescription> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.annotation.Annotation... value) |
Creates a matcher that matches none of the given annotations as AnnotationDescription s
by the Object.equals(Object) method.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.Iterable<?> values) |
Creates a matcher that matches none of the given objects by the Object.equals(Object) method.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.Object... value) |
Creates a matcher that matches none of the given objects by the Object.equals(Object) method.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.reflect.Constructor<?>... value) |
Creates a matcher that matches none of the given constructors as MethodDescription s
by the Object.equals(Object) method.
|
static <T extends FieldDescription> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.reflect.Field... value) |
Creates a matcher that matches none of the given methods as FieldDescription s
by the Object.equals(Object) method.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.reflect.Method... value) |
Creates a matcher that matches none of the given methods as MethodDescription s
by the Object.equals(Object) method.
|
static <T extends TypeDefinition> ElementMatcher.Junction<T> |
ElementMatchers.noneOf(java.lang.reflect.Type... value) |
Creates a matcher that matches none of the given types as TypeDescription s
by the Object.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 java.lang.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 the other 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 the other matcher must be matched in order
to constitute a successful match.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.returns(java.lang.Class<?> type) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.returns(TypeDescription 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(java.lang.reflect.Type type) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.returnsGeneric(TypeDescription.Generic type) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.returnsGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) |
|
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,
java.lang.Class<?> type) |
Matches MethodDescription 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) |
Matches MethodDescription 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) |
Matches MethodDescription 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) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesArguments(java.lang.Class<?>... type) |
Matches a method description that takes the provided raw arguments.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesArguments(java.lang.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 java.lang.Iterable<? extends TypeDescription>> matchers) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesGenericArgument(int index,
java.lang.reflect.Type type) |
Matches MethodDescription 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) |
Matches MethodDescription 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) |
Matches MethodDescription s that define a given generic type as a parameter at the given index.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesGenericArguments(java.lang.reflect.Type... type) |
Matches a method description that takes the provided generic arguments.
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesGenericArguments(java.util.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 java.lang.Iterable<? extends TypeDescription.Generic>> matchers) |
|
static <T extends MethodDescription> ElementMatcher.Junction<T> |
ElementMatchers.takesNoArguments() |
|
static <T extends AnnotationDescription> ElementMatcher.Junction<T> |
ElementMatchers.targetsElement(java.lang.annotation.ElementType elementType) |
Matches if an annotation can target a given element type.
|
static <T> ElementMatcher.Junction<java.lang.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<java.lang.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.
|