Search in sources :

Example 1 with JavaDocSource

use of org.jboss.forge.roaster.model.source.JavaDocSource in project Entitas-Java by Rubentxu.

the class CodeGeneratorOld method writeFiles.

public void writeFiles(String directoryName, List<JavaClassSource> files) {
    File directory = new File(String.valueOf(directoryName));
    if (!directory.exists()) {
        directory.mkdir();
    }
    files.stream().forEach((file) -> {
        JavaDocSource javaDoc = file.getJavaDoc();
        javaDoc.setFullText(String.format(AUTO_GENERATED_HEADER_FORMAT, "CodeGenerator"));
        toFile(file, directory);
    });
}
Also used : JavaDocSource(org.jboss.forge.roaster.model.source.JavaDocSource) CodeGenFile(ilargia.entitas.codeGeneration.data.CodeGenFile)

Aggregations

CodeGenFile (ilargia.entitas.codeGeneration.data.CodeGenFile)1 JavaDocSource (org.jboss.forge.roaster.model.source.JavaDocSource)1