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.
Constructor and Description |
---|
AbstractTemplateBoundariesProcessor(TemplateMode templateMode,
int precedence) |
Modifier and Type | Method and 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 a
ITemplateEnd event. |
void |
processTemplateStart(ITemplateContext context,
ITemplateStart templateStart,
ITemplateBoundariesStructureHandler structureHandler)
Execute the processor for a
ITemplateStart event. |
getPrecedence, getTemplateMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrecedence, getTemplateMode
public AbstractTemplateBoundariesProcessor(TemplateMode templateMode, int precedence)
public final void processTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
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 specified
ITemplateBoundariesStructureHandler
handler.
processTemplateStart
in interface ITemplateBoundariesProcessor
context
- the execution context.templateStart
- the event this processor is executing on.structureHandler
- the handler that will centralise modifications and commands to the engine.public final void processTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
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 specified
ITemplateBoundariesStructureHandler
handler.
processTemplateEnd
in interface ITemplateBoundariesProcessor
context
- the execution context.templateEnd
- the event this processor is executing on.structureHandler
- the handler that will centralise modifications and commands to the engine.public abstract void doProcessTemplateStart(ITemplateContext context, ITemplateStart templateStart, ITemplateBoundariesStructureHandler structureHandler)
public abstract void doProcessTemplateEnd(ITemplateContext context, ITemplateEnd templateEnd, ITemplateBoundariesStructureHandler structureHandler)
Copyright © 2017 The THYMELEAF team. All rights reserved.