Class CopyLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.CopyLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class CopyLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Saves template text to be used later.Register:
additionalProperties.put("copy", new CopyLambda(new CopyContent()));Use:
{{#copy}}{{name}}{{/copy}}
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCopyLambda.CopyContentstatic classCopyLambda.WhiteSpaceStrategy
-
Field Summary
Fields Modifier and Type Field Description CopyLambda.CopyContentcopyContent
-
Constructor Summary
Constructors Constructor Description CopyLambda(CopyLambda.CopyContent content, CopyLambda.WhiteSpaceStrategy leadingWhiteSpaceStrategy, CopyLambda.WhiteSpaceStrategy trailingWhiteSpaceStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Field Detail
-
copyContent
public CopyLambda.CopyContent copyContent
-
-
Constructor Detail
-
CopyLambda
public CopyLambda(CopyLambda.CopyContent content, CopyLambda.WhiteSpaceStrategy leadingWhiteSpaceStrategy, CopyLambda.WhiteSpaceStrategy trailingWhiteSpaceStrategy)
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException- Specified by:
executein interfacecom.samskivert.mustache.Mustache.Lambda- Throws:
IOException
-
-