class StandardInlineEnablementTemplateBoundariesProcessor extends AbstractTemplateBoundariesProcessor {

    public static final int PRECEDENCE = 10;

    public StandardInlineEnablementTemplateBoundariesProcessor(final TemplateMode templateMode) {
        super(templateMode, PRECEDENCE);
    }


    @Override
    public void doProcessTemplateStart(
            final ITemplateContext context,
            final ITemplateStart templateStart, final ITemplateBoundariesStructureHandler structureHandler) {<FILL_FUNCTION_BODY>}


    @Override
    public void doProcessTemplateEnd(
            final ITemplateContext context,
            final ITemplateEnd templateEnd, final ITemplateBoundariesStructureHandler structureHandler) {

        // Empty - nothing to be done on template end

    }

}


        switch (getTemplateMode()) {

            case HTML:
                structureHandler.setInliner(new StandardHTMLInliner(context.getConfiguration()));
                break;
            case XML:
                structureHandler.setInliner(new StandardXMLInliner(context.getConfiguration()));
                break;
            case TEXT:
                structureHandler.setInliner(new StandardTextInliner(context.getConfiguration()));
                break;
            case JAVASCRIPT:
                structureHandler.setInliner(new StandardJavaScriptInliner(context.getConfiguration()));
                break;
            case CSS:
                structureHandler.setInliner(new StandardCSSInliner(context.getConfiguration()));
                break;
            case RAW:
                // No inliner for RAW template mode. We could use the Raw, but anyway it would be of no use
                // because in RAW mode the text processor that looks for the inliner to apply does not exist...
                structureHandler.setInliner(null);
                break;
            default:
                throw new TemplateProcessingException(
                        "Unrecognized template mode: " + getTemplateMode() + ", cannot initialize inlining!");

        }

    
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public abstract void doProcessTemplateEnd(org.thymeleaf.context.ITemplateContext, org.thymeleaf.model.ITemplateEnd, org.thymeleaf.processor.templateboundaries.ITemplateBoundariesStructureHandler) ,public abstract void doProcessTemplateStart(org.thymeleaf.context.ITemplateContext, org.thymeleaf.model.ITemplateStart, org.thymeleaf.processor.templateboundaries.ITemplateBoundariesStructureHandler) ,public final void processTemplateEnd(org.thymeleaf.context.ITemplateContext, org.thymeleaf.model.ITemplateEnd, org.thymeleaf.processor.templateboundaries.ITemplateBoundariesStructureHandler) ,public final void processTemplateStart(org.thymeleaf.context.ITemplateContext, org.thymeleaf.model.ITemplateStart, org.thymeleaf.processor.templateboundaries.ITemplateBoundariesStructureHandler) <variables>