Package org.thymeleaf.expression
Class Conversions
- java.lang.Object
-
- org.thymeleaf.expression.Conversions
-
public final class Conversions extends java.lang.ObjectExpression object for performing type conversion operations inside Thymeleaf Standard Expressions.
An object of this class is usually available in variable evaluation expressions with the name
#conversions.Note a class with this name existed since 2.1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private IExpressionContextcontext
-
Constructor Summary
Constructors Constructor Description Conversions(IExpressionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconvert(java.lang.Object target, java.lang.Class<?> clazz)java.lang.Objectconvert(java.lang.Object target, java.lang.String className)
-
-
-
Field Detail
-
context
private final IExpressionContext context
-
-
Constructor Detail
-
Conversions
public Conversions(IExpressionContext context)
-
-