Package org.hibernate.processor.model
Interface Metamodel
-
- All Superinterfaces:
ImportContext
- All Known Implementing Classes:
AnnotationMeta,AnnotationMetaEntity,AnnotationMetaPackage,XmlMetaEntity
public interface Metamodel extends ImportContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgenerateImports()ContextgetContext()ElementgetElement()List<MetaAttribute>getMembers()StringgetPackageName()StringgetQualifiedName()StringgetSimpleName()@Nullable StringgetSupertypeName()StringimportType(String fqcn)Add fqcn to the import list.List<AnnotationMirror>inheritedAnnotations()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)
-
-
-
Method Detail
-
getSimpleName
String getSimpleName()
-
getQualifiedName
String getQualifiedName()
-
getSupertypeName
@Nullable String getSupertypeName()
-
getPackageName
String getPackageName()
-
getMembers
List<MetaAttribute> getMembers()
-
generateImports
String generateImports()
- Specified by:
generateImportsin interfaceImportContext
-
importType
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- Specified by:
importTypein interfaceImportContext- Parameters:
fqcn- Fully qualified class name of the type to import.- Returns:
- import string
-
staticImport
String staticImport(String fqcn, String member)
- Specified by:
staticImportin interfaceImportContext
-
getElement
Element getElement()
-
isMetaComplete
boolean isMetaComplete()
-
getContext
Context getContext()
-
isImplementation
boolean isImplementation()
Is this an implementation of a repository interface?
-
isInjectable
boolean isInjectable()
Can this be injected into things?
-
scope
String scope()
What is its CDI scope for injection?
-
isJakartaDataStyle
boolean isJakartaDataStyle()
Is it a Jakarta Data style metamodel interface?
-
inheritedAnnotations
List<AnnotationMirror> inheritedAnnotations()
-
-