Annotation Interface Annotation


@Retention(RUNTIME) public @interface Annotation
Used in conjunction with the AnnotateWith annotation to indicate which kind of annotation is specified for generated code.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
    Class<? extends Annotation>
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The annotation elements as a set of key-value pair.
  • Element Details

    • target

      Returns:
      the location where the annotation is specified.
    • type

      Class<? extends Annotation> type
      Returns:
      the annotation class that this annotation represents.
    • elements

      String elements
      The annotation elements as a set of key-value pair.

      Represented in CSV format:

       elementName1=value1, elementName2=value2
       
      Returns:
      the annotation elements
      Default:
      ""