Class StandardExpressionExecutionContext
java.lang.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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final StandardExpressionExecutionContextprivate static final StandardExpressionExecutionContextprivate final booleanstatic final StandardExpressionExecutionContextstatic final StandardExpressionExecutionContextprivate static final StandardExpressionExecutionContextprivate static final StandardExpressionExecutionContextprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStandardExpressionExecutionContext(boolean restrictVariableAccess, boolean restrictInstantiationAndStatic, boolean forbidUnsafeExpressionResults, boolean performTypeConversion) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanRestricts 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
-
RESTRICTED_WITH_TYPE_CONVERSION
-
RESTRICTED_FORBID_UNSAFE_EXP_RESULTS_WITH_TYPE_CONVERSION
private static final StandardExpressionExecutionContext RESTRICTED_FORBID_UNSAFE_EXP_RESULTS_WITH_TYPE_CONVERSION -
NORMAL_WITH_TYPE_CONVERSION
-
restrictVariableAccess
private final boolean restrictVariableAccess -
restrictInstantiationAndStatic
private final boolean restrictInstantiationAndStatic -
forbidUnsafeExpressionResults
private final boolean forbidUnsafeExpressionResults -
performTypeConversion
private final boolean performTypeConversion
-
-
Constructor Details
-
StandardExpressionExecutionContext
private StandardExpressionExecutionContext(boolean restrictVariableAccess, boolean restrictInstantiationAndStatic, boolean forbidUnsafeExpressionResults, boolean performTypeConversion)
-
-
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
-