Package net.jqwik.engine.support
Class JqwikAnnotationSupport
- java.lang.Object
-
- net.jqwik.engine.support.JqwikAnnotationSupport
-
public class JqwikAnnotationSupport extends java.lang.ObjectProvide stuff that org.junit.commons.support.AnnotationSupport does not.
-
-
Constructor Summary
Constructors Constructor Description JqwikAnnotationSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.annotation.Annotation>findAllAnnotations(java.lang.reflect.AnnotatedElement element)Find all annotations in an element, even if they are repeatable or only present through meta-annotationsstatic <A extends java.lang.annotation.Annotation>
java.util.Optional<A>findAnnotationOnElementOrContainer(java.lang.reflect.AnnotatedElement element, java.lang.Class<A> annotationType)
-
-
-
Method Detail
-
findAllAnnotations
public static java.util.List<java.lang.annotation.Annotation> findAllAnnotations(java.lang.reflect.AnnotatedElement element)
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
-
findAnnotationOnElementOrContainer
public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findAnnotationOnElementOrContainer(java.lang.reflect.AnnotatedElement element, java.lang.Class<A> annotationType)
-
-