Package org.mapstruct.ap.internal.writer
Class ModelIncludeDirective
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.ModelIncludeDirective
-
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public class ModelIncludeDirective extends Object implements freemarker.template.TemplateDirectiveModel
ATemplateDirectiveModelwhich allows to recursively write a graph ofWritables, with each element using its own template. Elements are imported into the parent template by using this directive like so:<@includeModel object=myProperty/>.- Author:
- Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description ModelIncludeDirective(freemarker.template.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
-
-
-
Method Detail
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException- Specified by:
executein interfacefreemarker.template.TemplateDirectiveModel- Throws:
freemarker.template.TemplateExceptionIOException
-
-