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.protected voidinit()booleanisImplementation()booleanisInjectable()booleanisJakartaDataStyle()booleanisMetaComplete()Stringscope()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()
-
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()
-
scope
public String scope()
-
isJakartaDataStyle
public boolean isJakartaDataStyle()
-
-