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
Deprecated.since 4.0, EvaluationContext is always provided.static ValueEvaluationContext
of
(Environment environment, EvaluationContext evaluationContext) Returns a newValueEvaluationContext
.
-
Method Details
-
of
Returns a newValueEvaluationContext
.- Parameters:
environment
-evaluationContext
-- Returns:
- a new
ValueEvaluationContext
for the given environment and evaluation context.
-
getEnvironment
Environment getEnvironment()Returns theEnvironment
if provided.- Returns:
- the
Environment
.
-
getEvaluationContext
EvaluationContext getEvaluationContext()Returns theEvaluationContext
if provided.- Returns:
- the
EvaluationContext
.
-
getRequiredEvaluationContext
Deprecated.since 4.0, EvaluationContext is always provided.Returns the requiredEvaluationContext
or throwsIllegalStateException
if there is no evaluation context available.- Returns:
- the
EvaluationContext
. - Since:
- 3.4
-