org.springframework.expression
Interface Expression

An expression capable of evaluating itself against context objects.
Encapsulates the details of a previously parsed expression string.
Provides a common abstraction for expression evaluation independent
of any language like OGNL or the Unified EL.

getValue(EvaluationContext context,
Class<T> desiredResultType)
Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type.

getValue(EvaluationContext context,
Object rootObject)
Evaluate this expression in the provided context and return the result of evaluation, but use
the supplied root context as an override for any default root object specified in the context.

<T> T

getValue(EvaluationContext context,
Object rootObject,
Class<T> desiredResultType)
Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type.

getValue

Evaluate the expression in the default context against the specified root object. If the
result of the evaluation does not match (and cannot be converted to) the expected result type
then an exception will be returned.

Parameters:

rootObject - the root object against which properties/etc will be resolved

getValue

Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type.

getValue

Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type. The supplied root object overrides any default specified on the
supplied context.

Parameters:

context - the context in which to evaluate the expression

rootObject - the root object against which properties/etc will be resolved