Class AbstractJavaCodegen.JSpecifyNullableLambda
- java.lang.Object
-
- org.openapitools.codegen.languages.AbstractJavaCodegen.JSpecifyNullableLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
- Enclosing class:
- AbstractJavaCodegen
protected class AbstractJavaCodegen.JSpecifyNullableLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
for Jspecify, remove @Nullable before the datatype and set keptNullable to true if done.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJSpecifyNullableLambda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)booleanisSetAndClear()voidsetNullableAnnotation(String nullableAnnotation)Override default nullable annotation, for example with a full qualified className
-
-
-
Method Detail
-
setNullableAnnotation
public void setNullableAnnotation(String nullableAnnotation)
Override default nullable annotation, for example with a full qualified className- Parameters:
nullableAnnotation- annotation used by the generator, for example @jakarta.annotation.Nullable
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException- Specified by:
executein interfacecom.samskivert.mustache.Mustache.Lambda- Throws:
IOException
-
isSetAndClear
public boolean isSetAndClear()
-
-