Class StandardExpressions
- Object
-
- org.thymeleaf.standard.expression.StandardExpressions
-
public final class StandardExpressions extends Object
Utility class for the easy obtention of objects relevant to the parsing and execution of Thymeleaf Standard Expressions.
Note a class with this name existed since 2.1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static String
STANDARD_CONVERSION_SERVICE_ATTRIBUTE_NAME
Name used for registering the Standard Conversion Service object as an execution attribute at the Standard Dialects.static String
STANDARD_EXPRESSION_PARSER_ATTRIBUTE_NAME
Name used for registering the Standard Expression Parser object as an execution attribute at the Standard Dialects.static String
STANDARD_VARIABLE_EXPRESSION_EVALUATOR_ATTRIBUTE_NAME
Name used for registering the Standard Variable Expression Evaluator object as an execution attribute at the Standard Dialects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IStandardConversionService
getConversionService(IEngineConfiguration configuration)
Obtain the conversion service (implementation ofIStandardConversionService
) registered by the Standard Dialect that is being currently used.static IStandardExpressionParser
getExpressionParser(IEngineConfiguration configuration)
Obtain the expression parser (implementation ofIStandardExpressionParser
) registered by the Standard Dialect that is being currently used.static IStandardVariableExpressionEvaluator
getVariableExpressionEvaluator(IEngineConfiguration configuration)
Obtain the variable expression evaluator (implementation ofIStandardVariableExpressionEvaluator
) registered by the Standard Dialect that is being currently used.
-
-
-
Field Detail
-
STANDARD_VARIABLE_EXPRESSION_EVALUATOR_ATTRIBUTE_NAME
public static final String STANDARD_VARIABLE_EXPRESSION_EVALUATOR_ATTRIBUTE_NAME
Name used for registering the Standard Variable Expression Evaluator object as an execution attribute at the Standard Dialects.- See Also:
- Constant Field Values
-
STANDARD_EXPRESSION_PARSER_ATTRIBUTE_NAME
public static final String STANDARD_EXPRESSION_PARSER_ATTRIBUTE_NAME
Name used for registering the Standard Expression Parser object as an execution attribute at the Standard Dialects.- See Also:
- Constant Field Values
-
STANDARD_CONVERSION_SERVICE_ATTRIBUTE_NAME
public static final String STANDARD_CONVERSION_SERVICE_ATTRIBUTE_NAME
Name used for registering the Standard Conversion Service object as an execution attribute at the Standard Dialects.- See Also:
- Constant Field Values
-
-
Method Detail
-
getExpressionParser
public static IStandardExpressionParser getExpressionParser(IEngineConfiguration configuration)
Obtain the expression parser (implementation of
IStandardExpressionParser
) registered by the Standard Dialect that is being currently used.- Parameters:
configuration
- the configuration object for the current template execution environment.- Returns:
- the parser object.
-
getVariableExpressionEvaluator
public static IStandardVariableExpressionEvaluator getVariableExpressionEvaluator(IEngineConfiguration configuration)
Obtain the variable expression evaluator (implementation of
IStandardVariableExpressionEvaluator
) registered by the Standard Dialect that is being currently used.Normally, there should be no need to obtain this object from the developers' code (only internally from
IStandardExpression
implementations).- Parameters:
configuration
- the configuration object for the current template execution environment.- Returns:
- the variable expression evaluator object.
-
getConversionService
public static IStandardConversionService getConversionService(IEngineConfiguration configuration)
Obtain the conversion service (implementation of
IStandardConversionService
) registered by the Standard Dialect that is being currently used.- Parameters:
configuration
- the configuration object for the current template execution environment.- Returns:
- the conversion service object.
-
-