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
ConstructorsConstructorDescriptionAbstractTemplateBoundariesProcessor
(TemplateMode templateMode, int precedence) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
doProcessTemplateEnd
(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler) abstract void
doProcessTemplateStart
(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler) final void
processTemplateEnd
(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler) Execute the processor for aITemplateEnd
event.final 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 Details
-
AbstractTemplateBoundariesProcessor
-
-
Method Details
-
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)
-