Class AnnotationMetaPackage
- java.lang.Object
-
- org.hibernate.jpamodelgen.annotation.AnnotationMeta
-
- org.hibernate.jpamodelgen.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()
String
importType(String fqcn)
Add fqcn to the import list.protected void
init()
boolean
isImplementation()
boolean
isInjectable()
boolean
isMetaComplete()
String
staticImport(String fqcn, String member)
String
toString()
-
Methods inherited from class org.hibernate.jpamodelgen.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()
-
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()
-
-