Class AnnotationMetaEntity

  • All Implemented Interfaces:
    ImportContext, MetaEntity

    public class AnnotationMetaEntity
    extends java.lang.Object
    implements MetaEntity
    Class used to collect meta information about an annotated type (entity, embeddable or mapped superclass).
    • Constructor Detail

      • AnnotationMetaEntity

        public AnnotationMetaEntity​(javax.lang.model.element.TypeElement element,
                                    Context context,
                                    boolean lazilyInitialised)
    • Method Detail

      • getContext

        public final Context getContext()
      • getSimpleName

        public final java.lang.String getSimpleName()
        Specified by:
        getSimpleName in interface MetaEntity
      • getPackageName

        public final java.lang.String getPackageName()
        Specified by:
        getPackageName in interface MetaEntity
      • mergeInMembers

        public void mergeInMembers​(MetaEntity other)
      • importType

        public final java.lang.String importType​(java.lang.String fqcn)
        Description copied from interface: ImportContext
        Add fqcn to the import list. Returns fqcn as needed in source code. Attempts to handle fqcn with array and generics references.

        e.g. java.util.Collection<org.marvel.Hulk> imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk

        Specified by:
        importType in interface ImportContext
        Specified by:
        importType in interface MetaEntity
        fqcn - Fully qualified class name of the type to import.
        import string
      • getTypeElement

        public final javax.lang.model.element.TypeElement getTypeElement()
        Specified by:
        getTypeElement in interface MetaEntity
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getElement

        protected javax.lang.model.element.TypeElement getElement()
      • init

        protected final void init()