Class StandardExpressionExecutionContext
- Object
-
- org.thymeleaf.standard.expression.StandardExpressionExecutionContext
-
public final class StandardExpressionExecutionContext extends Object
Context class that contains several conditions that might be of interest to the expression executor (like for instance, whether the expression comes from preprocessing or not)
Note a class with this name existed since 2.0.16, 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 StandardExpressionExecutionContext
NORMAL
static StandardExpressionExecutionContext
RESTRICTED
static StandardExpressionExecutionContext
RESTRICTED_FORBID_UNSAFE_EXP_RESULTS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getForbidUnsafeExpressionResults()
boolean
getPerformTypeConversion()
boolean
getRestrictInstantiationAndStatic()
Restricts whether this execution context restricts the instantiation of new objects and the access to static classes.boolean
getRestrictVariableAccess()
StandardExpressionExecutionContext
withoutTypeConversion()
StandardExpressionExecutionContext
withTypeConversion()
-
-
-
Field Detail
-
RESTRICTED
public static final StandardExpressionExecutionContext RESTRICTED
-
RESTRICTED_FORBID_UNSAFE_EXP_RESULTS
public static final StandardExpressionExecutionContext RESTRICTED_FORBID_UNSAFE_EXP_RESULTS
-
NORMAL
public static final StandardExpressionExecutionContext NORMAL
-
-
Method Detail
-
getRestrictVariableAccess
public boolean getRestrictVariableAccess()
-
getRestrictInstantiationAndStatic
public boolean getRestrictInstantiationAndStatic()
Restricts whether this execution context restricts the instantiation of new objects and the access to static classes.- Returns:
- Whether this restriction should be applied or not.
- Since:
- 3.0.12
-
getForbidUnsafeExpressionResults
public boolean getForbidUnsafeExpressionResults()
-
getPerformTypeConversion
public boolean getPerformTypeConversion()
-
withoutTypeConversion
public StandardExpressionExecutionContext withoutTypeConversion()
-
withTypeConversion
public StandardExpressionExecutionContext withTypeConversion()
-
-