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 Summary
Constructors Constructor Description AnnotationMetaPackage(PackageElement element, Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotationMetaPackagecreate(PackageElement element, Context context)StringgenerateImports()ContextgetContext()PackageElementgetElement()List<MetaAttribute>getMembers()StringgetPackageName()StringgetQualifiedName()StringgetSimpleName()@Nullable StringgetSupertypeName()StringimportType(String fqcn)Add fqcn to the import list.List<AnnotationMirror>inheritedAnnotations()protected voidinit()booleanisImplementation()Is this an implementation of a repository interface?booleanisInjectable()Can this be injected into things?booleanisJakartaDataStyle()Is it a Jakarta Data style metamodel interface?booleanisMetaComplete()Stringscope()What is its CDI scope for injection?StringstaticImport(String fqcn, String member)StringtoString()-
Methods inherited from class org.hibernate.processor.annotation.AnnotationMeta
getSessionVariableName
-
-
-
-
Constructor Detail
-
AnnotationMetaPackage
public AnnotationMetaPackage(PackageElement element, Context context)
-
-
Method Detail
-
create
public static AnnotationMetaPackage create(PackageElement element, Context context)
-
getContext
public final Context getContext()
-
isImplementation
public boolean isImplementation()
Description copied from interface:MetamodelIs this an implementation of a repository interface?
-
getSimpleName
public final String getSimpleName()
-
getQualifiedName
public final String getQualifiedName()
-
getSupertypeName
public @Nullable String getSupertypeName()
-
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:ImportContextAdd 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>importsjava.util.Collectionand returnsCollectionorg.marvel.Hulk[]importsorg.marvel.Hulkand returnsHulk- Parameters:
fqcn- Fully qualified class name of the type to import.- Returns:
- import string
-
getElement
public final PackageElement getElement()
-
init
protected final void init()
-
isInjectable
public boolean isInjectable()
Description copied from interface:MetamodelCan this be injected into things?
-
scope
public String scope()
Description copied from interface:MetamodelWhat is its CDI scope for injection?
-
isJakartaDataStyle
public boolean isJakartaDataStyle()
Description copied from interface:MetamodelIs it a Jakarta Data style metamodel interface?
-
inheritedAnnotations
public List<AnnotationMirror> inheritedAnnotations()
-
-