Class StandardExpressionObjectFactory
- java.lang.Object
-
- org.thymeleaf.standard.expression.StandardExpressionObjectFactory
-
- All Implemented Interfaces:
IExpressionObjectFactory
public class StandardExpressionObjectFactory extends java.lang.Object implements IExpressionObjectFactory
Builds the expression objects to be used by Standard dialects.
- Since:
- 3.0.0
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StandardExpressionObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectbuildObject(IExpressionContext context, java.lang.String expressionObjectName)Build the requested object.java.util.Set<java.lang.String>getAllExpressionObjectNames()Return the complete list of expression objects that can be created by this factory.booleanisCacheable(java.lang.String expressionObjectName)Returns whether a specific expression object can be cached and reused for all expressions in the same template execution or not.
-
-
-
Field Detail
-
CONTEXT_EXPRESSION_OBJECT_NAME
public static final java.lang.String CONTEXT_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
ROOT_EXPRESSION_OBJECT_NAME
public static final java.lang.String ROOT_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
VARIABLES_EXPRESSION_OBJECT_NAME
public static final java.lang.String VARIABLES_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
SELECTION_TARGET_EXPRESSION_OBJECT_NAME
public static final java.lang.String SELECTION_TARGET_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
LOCALE_EXPRESSION_OBJECT_NAME
public static final java.lang.String LOCALE_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
REQUEST_EXPRESSION_OBJECT_NAME
public static final java.lang.String REQUEST_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
RESPONSE_EXPRESSION_OBJECT_NAME
public static final java.lang.String RESPONSE_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
SESSION_EXPRESSION_OBJECT_NAME
public static final java.lang.String SESSION_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
SERVLET_CONTEXT_EXPRESSION_OBJECT_NAME
public static final java.lang.String SERVLET_CONTEXT_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
CONVERSIONS_EXPRESSION_OBJECT_NAME
public static final java.lang.String CONVERSIONS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
URIS_EXPRESSION_OBJECT_NAME
public static final java.lang.String URIS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
TEMPORALS_EXPRESSION_OBJECT_NAME
public static final java.lang.String TEMPORALS_EXPRESSION_OBJECT_NAME
- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
CALENDARS_EXPRESSION_OBJECT_NAME
public static final java.lang.String CALENDARS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
DATES_EXPRESSION_OBJECT_NAME
public static final java.lang.String DATES_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
BOOLS_EXPRESSION_OBJECT_NAME
public static final java.lang.String BOOLS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
NUMBERS_EXPRESSION_OBJECT_NAME
public static final java.lang.String NUMBERS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
OBJECTS_EXPRESSION_OBJECT_NAME
public static final java.lang.String OBJECTS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
STRINGS_EXPRESSION_OBJECT_NAME
public static final java.lang.String STRINGS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
ARRAYS_EXPRESSION_OBJECT_NAME
public static final java.lang.String ARRAYS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
LISTS_EXPRESSION_OBJECT_NAME
public static final java.lang.String LISTS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
SETS_EXPRESSION_OBJECT_NAME
public static final java.lang.String SETS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
MAPS_EXPRESSION_OBJECT_NAME
public static final java.lang.String MAPS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
AGGREGATES_EXPRESSION_OBJECT_NAME
public static final java.lang.String AGGREGATES_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
MESSAGES_EXPRESSION_OBJECT_NAME
public static final java.lang.String MESSAGES_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
IDS_EXPRESSION_OBJECT_NAME
public static final java.lang.String IDS_EXPRESSION_OBJECT_NAME
- See Also:
- Constant Field Values
-
EXECUTION_INFO_OBJECT_NAME
public static final java.lang.String EXECUTION_INFO_OBJECT_NAME
- See Also:
- Constant Field Values
-
ALL_EXPRESSION_OBJECT_NAMES
protected static final java.util.Set<java.lang.String> ALL_EXPRESSION_OBJECT_NAMES
-
URIS_EXPRESSION_OBJECT
private static final Uris URIS_EXPRESSION_OBJECT
-
BOOLS_EXPRESSION_OBJECT
private static final Bools BOOLS_EXPRESSION_OBJECT
-
OBJECTS_EXPRESSION_OBJECT
private static final Objects OBJECTS_EXPRESSION_OBJECT
-
ARRAYS_EXPRESSION_OBJECT
private static final Arrays ARRAYS_EXPRESSION_OBJECT
-
LISTS_EXPRESSION_OBJECT
private static final Lists LISTS_EXPRESSION_OBJECT
-
SETS_EXPRESSION_OBJECT
private static final Sets SETS_EXPRESSION_OBJECT
-
MAPS_EXPRESSION_OBJECT
private static final Maps MAPS_EXPRESSION_OBJECT
-
AGGREGATES_EXPRESSION_OBJECT
private static final Aggregates AGGREGATES_EXPRESSION_OBJECT
-
-
Method Detail
-
getAllExpressionObjectNames
public java.util.Set<java.lang.String> getAllExpressionObjectNames()
Description copied from interface:IExpressionObjectFactoryReturn 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:
getAllExpressionObjectNamesin interfaceIExpressionObjectFactory- Returns:
- the list of objects this factory can build.
-
isCacheable
public boolean isCacheable(java.lang.String expressionObjectName)
Description copied from interface:IExpressionObjectFactoryReturns 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:
isCacheablein interfaceIExpressionObjectFactory- Parameters:
expressionObjectName- the name of the expression object.- Returns:
trueis the object is to be considered cacheable,falseif not.
-
buildObject
public java.lang.Object buildObject(IExpressionContext context, java.lang.String expressionObjectName)
Description copied from interface:IExpressionObjectFactoryBuild the requested object.
- Specified by:
buildObjectin 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
nullif the object could not be built.
-
-