Package net.jqwik.engine.support
Klasse JqwikAnnotationSupport
java.lang.Object
net.jqwik.engine.support.JqwikAnnotationSupport
Provide stuff that org.junit.commons.support.AnnotationSupport does not.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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)
-
Konstruktordetails
-
JqwikAnnotationSupport
public JqwikAnnotationSupport()
-
-
Methodendetails
-
findAllAnnotations
Find all annotations in an element, even if they are repeatable or only present through meta-annotations- Parameter:
element- the element to check for present annotations- Gibt zurück:
- 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)
-