Interface ImportContext

    • 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> imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk

        fqcn - Fully qualified class name of the type to import.
        import string
      • generateImports

        String generateImports()