Class AbstractTextProcessor

    • Constructor Detail

      • AbstractTextProcessor

        public AbstractTextProcessor​(TemplateMode templateMode,
                                     int precedence)
    • Method Detail

      • 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.