|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsugar4j.lang.ImportManager
public class ImportManager
Manages an import list. At the end of the generation, when all imported types are known, the import list is inserted back into the code.
Call addImport(String, boolean)
for each full qualified name to import.
Constructor Summary | |
---|---|
ImportManager()
|
Method Summary | |
---|---|
String |
addImport(String type,
boolean staticc)
Adds the given type to the import list. |
String |
getImport(String s)
|
String |
getImportList()
Returns this manager's import list. |
Constructor Detail |
---|
public ImportManager()
Method Detail |
---|
public String addImport(String type, boolean staticc)
type
- Full qualified name of the typestaticc
- Whether to make a static import
public String getImportList()
public String getImport(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |