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 voiddoProcessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler) abstract voiddoProcessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler) final voidprocessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler) Execute the processor for aITemplateEndevent.final voidprocessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler) Execute the processor for aITemplateStartevent.Methods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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)
-