public IModel transform(List<File> modelFileList) throws MoDiException {
IModel result = new Model();
IModelItem item = null;
IParser joda = new JavaParser();
ITreeWalker luke = new ASTtoMetaRepresentationTransformer();
for (File file : modelFileList) {
//TODO remove debug
// LOGGER.info("parsing file: " + file.getAbsolutePath());
AST ast = joda.getAST(file);// parse the file
item = luke.walk(ast); // build a ModelItem from the AST
result.addModelItem(item); // add it to the model
}
return result;
}