Package org.thymeleaf.context
Class AbstractExpressionContext
Object
org.thymeleaf.context.AbstractContext
org.thymeleaf.context.AbstractExpressionContext
- All Implemented Interfaces:
IContext
,IExpressionContext
- Direct Known Subclasses:
ExpressionContext
,WebExpressionContext
public abstract class AbstractExpressionContext
extends AbstractContext
implements IExpressionContext
Base abstract class implementing IExpressionContext
.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractExpressionContext
(IEngineConfiguration configuration) protected
AbstractExpressionContext
(IEngineConfiguration configuration, Locale locale) protected
AbstractExpressionContext
(IEngineConfiguration configuration, Locale locale, Map<String, Object> variables) -
Method Summary
Modifier and TypeMethodDescriptionfinal IEngineConfiguration
Returns theIEngineConfiguration
(engine configuration) corresponding to theITemplateEngine
instance this expression context is meant to be used with.Returns theIExpressionObjects
instance to be used for retrieving (and maybe building lazily) expression objects (${#expobj}
) to be used at Standard Thymeleaf Expressions.Methods inherited from class org.thymeleaf.context.AbstractContext
clearVariables, containsVariable, getLocale, getVariable, getVariableNames, removeVariable, setLocale, setVariable, setVariables
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.thymeleaf.context.IContext
containsVariable, getLocale, getVariable, getVariableNames
-
Constructor Details
-
AbstractExpressionContext
-
AbstractExpressionContext
-
AbstractExpressionContext
protected AbstractExpressionContext(IEngineConfiguration configuration, Locale locale, Map<String, Object> variables)
-
-
Method Details
-
getConfiguration
Description copied from interface:IExpressionContext
Returns the
IEngineConfiguration
(engine configuration) corresponding to theITemplateEngine
instance this expression context is meant to be used with.- Specified by:
getConfiguration
in interfaceIExpressionContext
- Returns:
- the engine configuration.
-
getExpressionObjects
Description copied from interface:IExpressionContext
Returns the
IExpressionObjects
instance to be used for retrieving (and maybe building lazily) expression objects (${#expobj}
) to be used at Standard Thymeleaf Expressions.- Specified by:
getExpressionObjects
in interfaceIExpressionContext
- Returns:
- the expression objects instance.
-