Annotation Interface Generation


@Target(TYPE) @Retention(RUNTIME) public @interface Generation
Represents the configuration for generating classes and sources.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The location of generated classes.
    boolean
    Whether to retain the generated classes and sources after each run.
    The location of generated sources.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A placeholder that signifies that the default output location should be used.
  • Field Details

    • DEFAULT_OUTPUT

      static final String DEFAULT_OUTPUT
      A placeholder that signifies that the default output location should be used.
      See Also:
  • Element Details

    • retain

      boolean retain
      Whether to retain the generated classes and sources after each run. Defaults to false.
      Returns:
      true if the generated classes and sources should be retained
      Default:
      false
    • classes

      String classes
      The location of generated classes.

      Defaults to a <temporary directory unique to method>/generated-classes.

      Returns:
      the location, or null if the default location is used
      Default:
      "${DEFAULT_OUTPUT}"
    • sources

      String sources
      The location of generated sources.

      Defaults to a <temporary directory unique to method>/generated-sources.

      Returns:
      the location, or null if the default location is used
      Default:
      "${DEFAULT_OUTPUT}"