Class ProcessorConfigurationUtils.PreProcessorWrapper
- java.lang.Object
-
- org.thymeleaf.util.ProcessorConfigurationUtils.PreProcessorWrapper
-
- All Implemented Interfaces:
IAttributeDefinitionsAware,IElementDefinitionsAware,IPreProcessor
- Enclosing class:
- ProcessorConfigurationUtils
static final class ProcessorConfigurationUtils.PreProcessorWrapper extends java.lang.Object implements IPreProcessor, IElementDefinitionsAware, IAttributeDefinitionsAware
-
-
Field Summary
Fields Modifier and Type Field Description private IProcessorDialectdialectprivate IPreProcessorpreProcessor
-
Constructor Summary
Constructors Constructor Description PreProcessorWrapper(IPreProcessor preProcessor, IProcessorDialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IProcessorDialectgetDialect()java.lang.Class<? extends ITemplateHandler>getHandlerClass()Returns the handler class for this pre-processor, theITemplateHandlerthat implements the real logic to be executed.intgetPrecedence()Returns the precedence that should be applied to this pre-processor.TemplateModegetTemplateMode()Returns the template mode this pre-processor should be executed for.voidsetAttributeDefinitions(AttributeDefinitions attributeDefinitions)voidsetElementDefinitions(ElementDefinitions elementDefinitions)java.lang.StringtoString()IPreProcessorunwrap()
-
-
-
Field Detail
-
dialect
private final IProcessorDialect dialect
-
preProcessor
private final IPreProcessor preProcessor
-
-
Constructor Detail
-
PreProcessorWrapper
PreProcessorWrapper(IPreProcessor preProcessor, IProcessorDialect dialect)
-
-
Method Detail
-
getTemplateMode
public TemplateMode getTemplateMode()
Description copied from interface:IPreProcessorReturns the template mode this pre-processor should be executed for. A pre-processor can only be linked to a specific template mode.
- Specified by:
getTemplateModein interfaceIPreProcessor- Returns:
- the template mode.
-
getPrecedence
public int getPrecedence()
Description copied from interface:IPreProcessorReturns the precedence that should be applied to this pre-processor. This will determine the order in which it will be executed in relation to any other pre-processors (note that the dialect precedence determined by
IPreProcessorDialect.getDialectPreProcessorPrecedence()will be applied first).- Specified by:
getPrecedencein interfaceIPreProcessor- Returns:
- the pre-processor precedence.
-
getDialect
public final IProcessorDialect getDialect()
-
getHandlerClass
public java.lang.Class<? extends ITemplateHandler> getHandlerClass()
Description copied from interface:IPreProcessorReturns the handler class for this pre-processor, the
ITemplateHandlerthat implements the real logic to be executed.In order for pre-processors to work correctly, they need to implement correctly all the
ITemplateHandlercontract. In order to make this easier, extendingAbstractTemplateHandleris recommended.- Specified by:
getHandlerClassin interfaceIPreProcessor- Returns:
- the handler class.
-
unwrap
public final IPreProcessor unwrap()
-
setAttributeDefinitions
public final void setAttributeDefinitions(AttributeDefinitions attributeDefinitions)
- Specified by:
setAttributeDefinitionsin interfaceIAttributeDefinitionsAware
-
setElementDefinitions
public final void setElementDefinitions(ElementDefinitions elementDefinitions)
- Specified by:
setElementDefinitionsin interfaceIElementDefinitionsAware
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-