Class AnnotationReferenceDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DataType>

    public class AnnotationReferenceDataType
    extends DataType
    A data type describing a field value having a reference to an annotation of a given type.
    Author:
    Einar M R Rosenvinge
    See Also:
    Serialized Form
    • Constructor Detail

      • AnnotationReferenceDataType

        public AnnotationReferenceDataType​(AnnotationType aType)
        Creates an AnnotationReferenceDataType with a generated id.
        Parameters:
        aType - the annotation type that AnnotationRefs shall refer to.
      • AnnotationReferenceDataType

        public AnnotationReferenceDataType​(AnnotationType aType,
                                           int id)
        Creates an AnnotationReferenceDataType with a given id.
        Parameters:
        aType - the annotation type that AnnotationRefs shall refer to.
        id - the id to use
      • AnnotationReferenceDataType

        protected AnnotationReferenceDataType()
        Creates an AnnotationReferenceDataType. WARNING! Do not use!
    • Method Detail

      • getAnnotationType

        public AnnotationType getAnnotationType()
        Returns the annotation type of this AnnotationReferenceDataType.
        Returns:
        the annotation type of this AnnotationReferenceDataType.
      • setAnnotationType

        protected void setAnnotationType​(AnnotationType type)
        Sets the annotation type that this AnnotationReferenceDataType points to. WARNING! Do not use.
        Parameters:
        type - the annotation type of this AnnotationReferenceDataType.