Class 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 Detail

      • JSpecifyNullableLambda

        protected JSpecifyNullableLambda()
    • 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:
        execute in interface com.samskivert.mustache.Mustache.Lambda
        Throws:
        IOException
      • isSetAndClear

        public boolean isSetAndClear()