Package org.hibernate.processor

Class ImportContextImpl

    • Constructor Detail

      • ImportContextImpl

        public ImportContextImpl​(String basePackage)
    • Method Detail

      • importType

        public String importType​(String typeExpression)
        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 returnsCollectionorg.marvel.Hulk[] importsorg.marvel.Hulk and returnsHulk

        Specified by:
        importType in interface ImportContext
        Parameters:
        typeExpression - A type expression
        Returns:
        import string
      • unqualify

        public static String unqualify​(String qualifiedName)
      • qualifier

        public static String qualifier​(String qualifiedName)