Class JqwikAnnotationSupport


  • public class JqwikAnnotationSupport
    extends java.lang.Object
    Provide stuff that org.junit.commons.support.AnnotationSupport does not.
    • 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-annotations
      static <A extends java.lang.annotation.Annotation>
      java.util.Optional<A>
      findAnnotationOnElementOrContainer​(java.lang.reflect.AnnotatedElement element, java.lang.Class<A> annotationType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JqwikAnnotationSupport

        public JqwikAnnotationSupport()
    • 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)