Class AnnotationMetaPackage

java.lang.Object
org.hibernate.processor.annotation.AnnotationMeta
org.hibernate.processor.annotation.AnnotationMetaPackage
All Implemented Interfaces:
ImportContext, Metamodel

public class AnnotationMetaPackage extends AnnotationMeta
Class used to collect meta information about an annotated package.
  • Constructor Details

  • Method Details

    • create

      public static AnnotationMetaPackage create(PackageElement element, Context context)
    • getContext

      public final Context getContext()
    • isImplementation

      public boolean isImplementation()
      Description copied from interface: Metamodel
      Is this an implementation of a repository interface?
    • getSimpleName

      public final String getSimpleName()
    • getQualifiedName

      public final String getQualifiedName()
    • getSuperTypeElement

      public @Nullable Element getSuperTypeElement()
    • getPackageName

      public final String getPackageName()
    • getMembers

      public List<MetaAttribute> getMembers()
    • isMetaComplete

      public boolean isMetaComplete()
    • generateImports

      public final String generateImports()
    • importType

      public final String importType(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

      Parameters:
      fqcn - Fully qualified class name of the type to import.
      Returns:
      import string
    • staticImport

      public final String staticImport(String fqcn, String member)
    • getElement

      public final PackageElement getElement()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • init

      protected final void init()
    • isInjectable

      public boolean isInjectable()
      Description copied from interface: Metamodel
      Can this be injected into things?
    • scope

      public String scope()
      Description copied from interface: Metamodel
      What is its CDI scope for injection?
    • isJakartaDataStyle

      public boolean isJakartaDataStyle()
      Description copied from interface: Metamodel
      Is it a Jakarta Data style metamodel interface?
    • inheritedAnnotations

      public List<AnnotationMirror> inheritedAnnotations()
    • javadoc

      public String javadoc()