Class AnnotationDef<C extends AnnotationDef<C,​A>,​A extends Annotation>

  • Type Parameters:
    C - The type of a concrete sub type. Following to the "self referencing generic type" pattern each sub type has to be parametrized with itself.
    A - The constraint annotation type represented by a concrete sub type.
    Direct Known Subclasses:
    ConstraintDef

    public abstract class AnnotationDef<C extends AnnotationDef<C,​A>,​A extends Annotation>
    extends Object
    Base class for all annotation definition types.

    Note that any protected member in this type and its subtypes are not part of the public API and are only meant for internal use.

    Author:
    Hardy Ferentschik, Gunnar Morling, Marko Bekhta, Guillaume Smet
    • Constructor Detail

      • AnnotationDef

        protected AnnotationDef​(Class<A> annotationType)
      • AnnotationDef

        protected AnnotationDef​(AnnotationDef<?,​A> original)