Class StandardExpressionExecutionContext
Object
org.thymeleaf.standard.expression.StandardExpressionExecutionContext
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
FieldsModifier and TypeFieldDescriptionstatic final StandardExpressionExecutionContext
static final StandardExpressionExecutionContext
static final StandardExpressionExecutionContext
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
Restricts whether this execution context restricts the instantiation of new objects and the access to static classes.boolean
-
Field Details
-
RESTRICTED
-
RESTRICTED_FORBID_UNSAFE_EXP_RESULTS
-
NORMAL
-
-
Method Details
-
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
-
withTypeConversion
-