Annotation Type OriginatingClasses


  • @Target(TYPE)
    @Retention(SOURCE)
    public @interface OriginatingClasses
    All generated classes will have this annotation indicating the FQNs of classes that are the origins of this generated code, as an aid when recompiling incrementally. This annotation is internal to the generator and should never be used by users. Its retention policy makes it unavailable at runtime.
    Since:
    4.3.5
    Author:
    anistor@redhat.com
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<?>[] value
      Origin classes.
    • Element Detail

      • value

        Class<?>[] value
        Origin classes. Do not use Element.getAnnotation(Class) to access this. Use Element.getAnnotationMirrors() instead, to avoid resolution of possibly no longer existent classes during incremental compilation and prevent issues with javac failing miserably with a completely unrelated ClassCastException in such cases.