|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.eugene.java.ImportsManager
ImportsManager
@Deprecated public class ImportsManager
Class used in generators that allows to manage easily imports. A first-pass allow to register imports, and in a second-pass, returns the type to use in generated code.
| Constructor Summary | |
|---|---|
ImportsManager()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
addImport(Class<?> clazz)
Deprecated. From the given class, add it to the imports list. |
boolean |
addImport(String fqn)
Deprecated. From the given fqn (fully qualified name), add it to the imports list. |
void |
clearImports()
Deprecated. Method to reset imports list. |
List<String> |
getImports(String packageName)
Deprecated. List the imports. |
String |
getType(String fqn)
Deprecated. Accorging to the already added types, returns the type to write in file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportsManager()
| Method Detail |
|---|
public boolean addImport(Class<?> clazz)
clazz - the class to import
addImport(String)public boolean addImport(String fqn)
fqn - the fully qualified name to import
public String getType(String fqn)
fqn - the fully qualified name to add
public List<String> getImports(String packageName)
packageName - the current package name (to avoid useless imports)
public void clearImports()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||