public class ImportManager extends Object
Used for example in processors or generators.
Created by tchemit on 20/01/2018.
| Constructor and Description |
|---|
ImportManager(String defaultPackage) |
| Modifier and Type | Method and Description |
|---|---|
String |
addImport(Class<?> type)
Register a type and return his simple name
|
String |
addImport(String type)
Register a type and return his simple name
|
List<String> |
getImportsList() |
String |
getImportsSection(String eol)
Generate the import section of a java file.
|
public ImportManager(String defaultPackage)
public String addImport(Class<?> type)
type - type to registerpublic String addImport(String type)
type - type to registerCopyright © 2018–2019 Ultreia.io. All rights reserved.