Interface MutableAnnotationTarget

    • Method Detail

      • addAnnotation

        AnnotationReference addAnnotation​(AnnotationReference annotationReference)
        Annotate this element with the given annotation reference.
        Parameters:
        annotationReference - the annotation reference
        Returns:
        a new annotation reference
        Throws:
        java.lang.IllegalArgumentException - if the given annotation reference is null
        Since:
        2.6
      • removeAnnotation

        boolean removeAnnotation​(AnnotationReference annotationReference)
        Remove the given annotation reference from this element.
        Parameters:
        annotationReference - the annotation reference
        Returns:
        true if this element contained the specified annotation
        Since:
        2.6