Search in sources :

Example 1 with GeneratedKotlinFile

use of org.mybatis.generator.api.GeneratedKotlinFile in project generator by mybatis.

the class IntrospectedTableMyBatis3Impl method getGeneratedKotlinFiles.

@Override
public List<GeneratedKotlinFile> getGeneratedKotlinFiles() {
    List<GeneratedKotlinFile> answer = new ArrayList<>();
    for (AbstractKotlinGenerator kotlinGenerator : kotlinGenerators) {
        List<KotlinFile> kotlinFiles = kotlinGenerator.getKotlinFiles();
        for (KotlinFile kotlinFile : kotlinFiles) {
            GeneratedKotlinFile gjf = new GeneratedKotlinFile(kotlinFile, kotlinGenerator.getProject(), context.getProperty(PropertyRegistry.CONTEXT_KOTLIN_FILE_ENCODING), context.getKotlinFormatter());
            answer.add(gjf);
        }
    }
    return answer;
}
Also used : AbstractKotlinGenerator(org.mybatis.generator.codegen.AbstractKotlinGenerator) GeneratedKotlinFile(org.mybatis.generator.api.GeneratedKotlinFile) ArrayList(java.util.ArrayList) GeneratedKotlinFile(org.mybatis.generator.api.GeneratedKotlinFile) KotlinFile(org.mybatis.generator.api.dom.kotlin.KotlinFile)

Aggregations

ArrayList (java.util.ArrayList)1 GeneratedKotlinFile (org.mybatis.generator.api.GeneratedKotlinFile)1 KotlinFile (org.mybatis.generator.api.dom.kotlin.KotlinFile)1 AbstractKotlinGenerator (org.mybatis.generator.codegen.AbstractKotlinGenerator)1