Class AbstractTemplateBoundariesProcessor
- Object
-
- org.thymeleaf.processor.AbstractProcessor
-
- org.thymeleaf.processor.templateboundaries.AbstractTemplateBoundariesProcessor
-
- All Implemented Interfaces:
IProcessor,ITemplateBoundariesProcessor
- Direct Known Subclasses:
StandardInlineEnablementTemplateBoundariesProcessor
public abstract class AbstractTemplateBoundariesProcessor extends AbstractProcessor implements ITemplateBoundariesProcessor
Basic abstract implementation of
ITemplateBoundariesProcessor.This abstract implementation takes care of correct exception handling so that subclasses don't have to.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description AbstractTemplateBoundariesProcessor(TemplateMode templateMode, int precedence)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoProcessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)abstract voiddoProcessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)voidprocessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)Execute the processor for aITemplateEndevent.voidprocessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)Execute the processor for aITemplateStartevent.-
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateMode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
-
-
-
Constructor Detail
-
AbstractTemplateBoundariesProcessor
public AbstractTemplateBoundariesProcessor(TemplateMode templateMode, int precedence)
-
-
Method Detail
-
processTemplateStart
public final void processTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
Description copied from interface:ITemplateBoundariesProcessorExecute the processor for a
ITemplateStartevent.The
ITemplateStartobject argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedITemplateBoundariesStructureHandlerhandler.- Specified by:
processTemplateStartin interfaceITemplateBoundariesProcessor- Parameters:
context- the execution context.templateStart- the event this processor is executing on.structureHandler- the handler that will centralise modifications and commands to the engine.
-
processTemplateEnd
public final void processTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
Description copied from interface:ITemplateBoundariesProcessorExecute the processor for a
ITemplateEndevent.The
ITemplateEndobject argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedITemplateBoundariesStructureHandlerhandler.- Specified by:
processTemplateEndin interfaceITemplateBoundariesProcessor- Parameters:
context- the execution context.templateEnd- the event this processor is executing on.structureHandler- the handler that will centralise modifications and commands to the engine.
-
doProcessTemplateStart
public abstract void doProcessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
-
doProcessTemplateEnd
public abstract void doProcessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
-
-