Interface JAnnotatable

    • Method Detail

      • annotate

        JAnnotationUse annotate​(JClass clazz)
        Adds an annotation to this program element.
        Parameters:
        clazz - The annotation class to annotate the program element with
      • annotate

        JAnnotationUse annotate​(Class<? extends Annotation> clazz)
        Adds an annotation to this program element.
        Parameters:
        clazz - The annotation class to annotate the program element with
      • annotate2

        <W extends JAnnotationWriter> W annotate2​(Class<W> clazz)
        Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.