Interface ValueEvaluationContext
public interface ValueEvaluationContext
Expressions are executed in an evaluation context. It is in this context that references are resolved when
encountered during expression evaluation.
- Since:
- 3.3
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionReturns theEnvironment
if provided.Returns theEvaluationContext
if provided.default EvaluationContext
Returns the requiredEvaluationContext
or throwsIllegalStateException
if there is no evaluation context available.static ValueEvaluationContext
of
(Environment environment, EvaluationContext evaluationContext) Returns a newValueEvaluationContext
.
-
Method Details
-
of
static ValueEvaluationContext of(@Nullable Environment environment, EvaluationContext evaluationContext) Returns a newValueEvaluationContext
.- Parameters:
environment
-evaluationContext
-- Returns:
- a new
ValueEvaluationContext
for the given environment and evaluation context.
-
getEnvironment
Returns theEnvironment
if provided.- Returns:
- the
Environment
or null.
-
getEvaluationContext
Returns theEvaluationContext
if provided.- Returns:
- the
EvaluationContext
or null if not set.
-
getRequiredEvaluationContext
Returns the requiredEvaluationContext
or throwsIllegalStateException
if there is no evaluation context available.- Returns:
- the
EvaluationContext
. - Since:
- 3.4
-