Class AbstractProcessingInstructionProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.processinginstruction.AbstractProcessingInstructionProcessor
- All Implemented Interfaces:
IProcessor,IProcessingInstructionProcessor
public abstract class AbstractProcessingInstructionProcessor
extends AbstractProcessor
implements IProcessingInstructionProcessor
Basic abstract implementation of IProcessingInstructionProcessor.
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
ConstructorsConstructorDescriptionAbstractProcessingInstructionProcessor(TemplateMode templateMode, int precedence) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoProcess(ITemplateContext context, IProcessingInstruction processingInstruction, IProcessingInstructionStructureHandler structureHandler) final voidprocess(ITemplateContext context, IProcessingInstruction processingInstruction, IProcessingInstructionStructureHandler structureHandler) Execute the processor.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
-
AbstractProcessingInstructionProcessor
-
-
Method Details
-
process
public final void process(ITemplateContext context, IProcessingInstruction processingInstruction, IProcessingInstructionStructureHandler structureHandler) Description copied from interface:IProcessingInstructionProcessorExecute the processor.
The
IProcessingInstructionobject argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedIProcessingInstructionStructureHandlerhandler.- Specified by:
processin interfaceIProcessingInstructionProcessor- Parameters:
context- the execution context.processingInstruction- the event this processor is executing on.structureHandler- the handler that will centralise modifications and commands to the engine.
-
doProcess
protected abstract void doProcess(ITemplateContext context, IProcessingInstruction processingInstruction, IProcessingInstructionStructureHandler structureHandler)
-