Class StandardExpressionObjectFactory
Object
org.thymeleaf.standard.expression.StandardExpressionObjectFactory
- All Implemented Interfaces:
IExpressionObjectFactory
Builds the expression objects to be used by Standard dialects.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildObject
(IExpressionContext context, String expressionObjectName) Build the requested object.Return the complete list of expression objects that can be created by this factory.boolean
isCacheable
(String expressionObjectName) Returns whether a specific expression object can be cached and reused for all expressions in the same template execution or not.
-
Field Details
-
CONTEXT_EXPRESSION_OBJECT_NAME
- See Also:
-
ROOT_EXPRESSION_OBJECT_NAME
- See Also:
-
VARIABLES_EXPRESSION_OBJECT_NAME
- See Also:
-
SELECTION_TARGET_EXPRESSION_OBJECT_NAME
- See Also:
-
LOCALE_EXPRESSION_OBJECT_NAME
- See Also:
-
REQUEST_EXPRESSION_OBJECT_NAME
- See Also:
-
RESPONSE_EXPRESSION_OBJECT_NAME
- See Also:
-
SESSION_EXPRESSION_OBJECT_NAME
- See Also:
-
SERVLET_CONTEXT_EXPRESSION_OBJECT_NAME
- See Also:
-
CONVERSIONS_EXPRESSION_OBJECT_NAME
- See Also:
-
URIS_EXPRESSION_OBJECT_NAME
- See Also:
-
TEMPORALS_EXPRESSION_OBJECT_NAME
- Since:
- 3.1.0
- See Also:
-
CALENDARS_EXPRESSION_OBJECT_NAME
- See Also:
-
DATES_EXPRESSION_OBJECT_NAME
- See Also:
-
BOOLS_EXPRESSION_OBJECT_NAME
- See Also:
-
NUMBERS_EXPRESSION_OBJECT_NAME
- See Also:
-
OBJECTS_EXPRESSION_OBJECT_NAME
- See Also:
-
STRINGS_EXPRESSION_OBJECT_NAME
- See Also:
-
ARRAYS_EXPRESSION_OBJECT_NAME
- See Also:
-
LISTS_EXPRESSION_OBJECT_NAME
- See Also:
-
SETS_EXPRESSION_OBJECT_NAME
- See Also:
-
MAPS_EXPRESSION_OBJECT_NAME
- See Also:
-
AGGREGATES_EXPRESSION_OBJECT_NAME
- See Also:
-
MESSAGES_EXPRESSION_OBJECT_NAME
- See Also:
-
IDS_EXPRESSION_OBJECT_NAME
- See Also:
-
EXECUTION_INFO_OBJECT_NAME
- See Also:
-
ALL_EXPRESSION_OBJECT_NAMES
-
-
Constructor Details
-
StandardExpressionObjectFactory
public StandardExpressionObjectFactory()
-
-
Method Details
-
getAllExpressionObjectNames
Description copied from interface:IExpressionObjectFactory
Return the complete list of expression objects that can be created by this factory.
This list will be used for determining if a factory might actually be asked to build an object, so it should contain all possible objects to be built by the factory.
- Specified by:
getAllExpressionObjectNames
in interfaceIExpressionObjectFactory
- Returns:
- the list of objects this factory can build.
-
isCacheable
Description copied from interface:IExpressionObjectFactory
Returns whether a specific expression object can be cached and reused for all expressions in the same template execution or not.
Note this cacheable flag refers only to reuse of the object in expressions in expressions executed during a single template execution.
- Specified by:
isCacheable
in interfaceIExpressionObjectFactory
- Parameters:
expressionObjectName
- the name of the expression object.- Returns:
true
is the object is to be considered cacheable,false
if not.
-
buildObject
Description copied from interface:IExpressionObjectFactory
Build the requested object.
- Specified by:
buildObject
in interfaceIExpressionObjectFactory
- Parameters:
context
- the context being used for processing the template.expressionObjectName
- the name of the expression object to be built.- Returns:
- the built object, or
null
if the object could not be built.
-