A simplified API for working with Thymeleaf expressions.
| Constructor and description |
|---|
ExpressionProcessor
(IExpressionContext context)Constructor, sets the execution context. |
| Type | Name and description |
|---|---|
IStandardExpression |
parse(String expression)Parses an expression, returning the matching expression type. |
FragmentExpression |
parseFragmentExpression(String expression)Parses an expression under the assumption it is a fragment expression. |
Object |
process(String expression)Parses and executes an expression, returning the result of the expression having been parsed and executed. |
String |
processAsString(String expression)Parse and execute an expression, returning the result as a string. |
Constructor, sets the execution context.
Parses an expression, returning the matching expression type.
Parses an expression under the assumption it is a fragment expression. This method will wrap fragment expressions written in Thymeleaf 2 syntax as a temporary backwards compatibility measure for those migrating their web apps to Thymeleaf 3.
Parses and executes an expression, returning the result of the expression having been parsed and executed.