Search in sources :

Example 1 with FunctionalItemImplGeneratorTask

use of org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemImplGeneratorTask in project vorto by eclipse.

the class ProSystGenerator method generateForFunctionBlock.

private void generateForFunctionBlock(InformationModel infomodel, InvocationContext ctx, FunctionblockModel fbm, IGeneratedWriter outputter, String[] imports) {
    ChainedCodeGeneratorTask<FunctionblockModel> generator = new ChainedCodeGeneratorTask<FunctionblockModel>();
    generator.addTask(new FunctionalItemGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, fbm.getNamespace()));
    generator.addTask(new FunctionalItemImplGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, fbm.getNamespace(), imports));
    generator.generate(fbm, ctx, outputter);
}
Also used : FunctionalItemImplGeneratorTask(org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemImplGeneratorTask) FunctionblockModel(org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel) ChainedCodeGeneratorTask(org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask) FunctionalItemGeneratorTask(org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemGeneratorTask)

Aggregations

ChainedCodeGeneratorTask (org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)1 FunctionalItemGeneratorTask (org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemGeneratorTask)1 FunctionalItemImplGeneratorTask (org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemImplGeneratorTask)1 FunctionblockModel (org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel)1