Package org.hibernate.processor
Class ImportContextImpl
java.lang.Object
org.hibernate.processor.ImportContextImpl
- All Implemented Interfaces:
ImportContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportType
(String typeExpression) Add fqcn to the import list.static String
staticImport
(String fqcn, String member) static String
-
Constructor Details
-
ImportContextImpl
-
-
Method Details
-
importType
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
- Specified by:
importType
in interfaceImportContext
- Parameters:
typeExpression
- A type expression- Returns:
- import string
-
staticImport
- Specified by:
staticImport
in interfaceImportContext
-
generateImports
- Specified by:
generateImports
in interfaceImportContext
-
unqualify
-
qualifier
-