modulesTypes = new HashMap<String, List<Type>>();
factory = adt.getApiFactory();
List<Entry> entries = new LinkedList<Entry>();
Modulentry currentModule;
String moduleName;
while (!adt.isEmpty()) { //For each module
List<Type> listModuleType = new LinkedList<Type>();
currentModule = (Modulentry)adt.getHead();
moduleName = currentModule.getModulename().getName();
//System.out.println("Processing module "+moduleName);
modules.add(currentModule);
Entries currentEntries = currentModule.getEntries();
while(!currentEntries.isEmpty()) {
entries.add(currentEntries.getHead());
currentEntries = currentEntries.getTail();
}