Annotation Type Generated


  • @Target(TYPE)
    public @interface Generated
    Annotation to mark generated classes. This annotations was introduced as class retained annotation and is often needed to differentiate to include exclude generated classes when processing class files, in particular to exclude during code coverage instrumentation and similar. It is not made runtime-retailed because problems were reported with some systems. In order to introduce custom runtime-retained annotation, please try to use org.immutables:annotate module to inject annotations at various places in generated code. Can be disabled by Value.Style.allowedClasspathAnnotations().
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String from
      Used to include reference (usually package relative) to class which was an annotated model from which this class was generated from.
      java.lang.String generator
      Symbolic name of generator/template used to emit file.
    • Element Detail

      • from

        java.lang.String from
        Used to include reference (usually package relative) to class which was an annotated model from which this class was generated from.
        Returns:
        relative class name (can be package name or method reference).
        Default:
        ""
      • generator

        java.lang.String generator
        Symbolic name of generator/template used to emit file.
        Returns:
        name of generator
        Default:
        ""