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
Constructors Modifier Constructor Description protected
AbstractExpressionContext(IEngineConfiguration configuration)
protected
AbstractExpressionContext(IEngineConfiguration configuration, Locale locale)
protected
AbstractExpressionContext(IEngineConfiguration configuration, Locale locale, Map<String,Object> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEngineConfiguration
getConfiguration()
Returns theIEngineConfiguration
(engine configuration) corresponding to theITemplateEngine
instance this expression context is meant to be used with.IExpressionObjects
getExpressionObjects()
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 Detail
-
AbstractExpressionContext
protected AbstractExpressionContext(IEngineConfiguration configuration)
-
AbstractExpressionContext
protected AbstractExpressionContext(IEngineConfiguration configuration, Locale locale)
-
AbstractExpressionContext
protected AbstractExpressionContext(IEngineConfiguration configuration, Locale locale, Map<String,Object> variables)
-
-
Method Detail
-
getConfiguration
public final IEngineConfiguration 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
public IExpressionObjects 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.
-
-