@CompileStatic @POJO @TupleConstructor(defaults: false) class ExpressionProcessor extends Object
A simplified API for working with Thymeleaf expressions.
| Type | Name and description |
|---|---|
IExpressionContext |
context |
| Constructor and description |
|---|
ExpressionProcessor() |
| Type Params | Return 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)Parse and executes an expression, returning whatever the type of the expression result is. |
|
String |
processAsString(String expression)Parse and execute an expression, returning the result as a string. |
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 backwards compatibility measure for those migrating their web apps to Thymeleaf 3. (This is because Thymeleaf 3 currently does the same, but expect this method to go away when Thymeleaf starts enforcing the new fragment expression syntax itself.)
Parse and executes an expression, returning whatever the type of the expression result is.
Groovy Documentation