Interface AnnotationTarget<O extends JavaType<O>>

    • Method Detail

      • hasAnnotation

        boolean hasAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> type)
        Check if annotation bound of the given type in this AnnotationTarget exists
        Parameters:
        type - The Annotation type
      • hasAnnotation

        boolean hasAnnotation​(java.lang.String type)
        Check if annotation bound of the given type in this AnnotationTarget exists
        Parameters:
        type - The FQN of the annotation
      • getAnnotation

        Annotation<O> getAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> type)
        Returns the annotation bound of the given type in this AnnotationTarget or null if it doesn't exist
        Parameters:
        type - The Annotation type
      • getAnnotation

        Annotation<O> getAnnotation​(java.lang.String type)
        Returns the annotation bound of the given type in this AnnotationTarget or null if it doesn't exist
        Parameters:
        type - The FQN of the annotation