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 AnnotationMetaPackage
create(PackageElement element, Context context)
String
generateImports()
Context
getContext()
PackageElement
getElement()
List<MetaAttribute>
getMembers()
String
getPackageName()
String
getQualifiedName()
String
getSimpleName()
@Nullable String
getSupertypeName()
String
importType(String fqcn)
Add fqcn to the import list.List<AnnotationMirror>
inheritedAnnotations()
protected void
init()
boolean
isImplementation()
Is this an implementation of a repository interface?boolean
isInjectable()
Can this be injected into things?boolean
isJakartaDataStyle()
Is it a Jakarta Data style metamodel interface?boolean
isMetaComplete()
String
scope()
What is its CDI scope for injection?String
staticImport(String fqcn, String member)
String
toString()
-
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:Metamodel
Is 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: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>
importsjava.util.Collection
and returnsCollection
org.marvel.Hulk[]
importsorg.marvel.Hulk
and 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: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()
-
-