Package net.jqwik.engine.support
Class JqwikAnnotationSupport
java.lang.Object
net.jqwik.engine.support.JqwikAnnotationSupport
Provide stuff that org.junit.commons.support.AnnotationSupport does not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Annotation>allMetaAnnotations(Annotation annotation) static List<Annotation>findAllAnnotations(AnnotatedElement element) Find all annotations in an element, even if they are repeatable or only present through meta-annotationsstatic <A extends Annotation>
List<A>findContainerAnnotations(Class<?> container, Class<A> annotationType) Find all annotation instances of a given type on a container class, even if they are repeatable or annotated.static <A extends Annotation>
List<A>findRepeatableAnnotationOnElementOrContainer(AnnotatedElement element, Class<A> annotationType)
-
Constructor Details
-
JqwikAnnotationSupport
public JqwikAnnotationSupport()
-
-
Method Details
-
findAllAnnotations
Find all annotations in an element, even if they are repeatable or only present through meta-annotations- Parameters:
element- the element to check for present annotations- Returns:
- a list of all found annotations
-
allMetaAnnotations
-
findRepeatableAnnotationOnElementOrContainer
public static <A extends Annotation> List<A> findRepeatableAnnotationOnElementOrContainer(AnnotatedElement element, Class<A> annotationType) -
findContainerAnnotations
public static <A extends Annotation> List<A> findContainerAnnotations(Class<?> container, Class<A> annotationType) Find all annotation instances of a given type on a container class, even if they are repeatable or annotated.Sort those annotations from closer (directly on class) to more remote (on extended classes and interfaces)
-