Class AbstractTextProcessor

Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.text.AbstractTextProcessor
All Implemented Interfaces:
IProcessor, ITextProcessor
Direct Known Subclasses:
StandardInliningTextProcessor

public abstract class AbstractTextProcessor extends AbstractProcessor implements ITextProcessor

Basic abstract implementation of ITextProcessor.

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 Details

    • AbstractTextProcessor

      public AbstractTextProcessor(TemplateMode templateMode, int precedence)
  • Method Details

    • process

      public final void process(ITemplateContext context, IText text, ITextStructureHandler structureHandler)
      Description copied from interface: ITextProcessor

      Execute the processor.

      The IText 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 ITextStructureHandler handler.

      Specified by:
      process in interface ITextProcessor
      Parameters:
      context - the execution context.
      text - 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, IText text, ITextStructureHandler structureHandler)