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 void
doProcessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
abstract void
doProcessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
void
processTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
Execute the processor for aITemplateEnd
event.void
processTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
Execute the processor for aITemplateStart
event.-
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:ITemplateBoundariesProcessor
Execute the processor for a
ITemplateStart
event.The
ITemplateStart
object argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedITemplateBoundariesStructureHandler
handler.- Specified by:
processTemplateStart
in 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:ITemplateBoundariesProcessor
Execute the processor for a
ITemplateEnd
event.The
ITemplateEnd
object argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedITemplateBoundariesStructureHandler
handler.- Specified by:
processTemplateEnd
in 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)
-
-