Package org.hibernate.processor.model
Interface ImportContext
-
- All Known Subinterfaces:
Metamodel
- All Known Implementing Classes:
AnnotationMeta,AnnotationMetaEntity,AnnotationMetaPackage,ImportContextImpl,XmlMetaEntity
public interface ImportContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgenerateImports()StringimportType(String fqcn)Add fqcn to the import list.StringstaticImport(String fqcn, String member)
-
-
-
Method Detail
-
importType
String importType(String fqcn)
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.Collectionand returnsCollectionorg.marvel.Hulk[]importsorg.marvel.Hulkand returnsHulk- Parameters:
fqcn- Fully qualified class name of the type to import.- Returns:
- import string
-
generateImports
String generateImports()
-
-