org.springframework.expression.common
Class CompositeStringExpression

Represents a template expression broken into pieces. Each piece will be an Expression but pure text parts to the
template will be represented as LiteralExpression objects. An example of a template expression might be:

"Hello ${getName()}"

which will be represented as a CompositeStringExpression of two parts. The first part being a
LiteralExpression representing 'Hello ' and the second part being a real expression that will
call getName() when invoked.

getValue(EvaluationContext context,
Class<T> expectedResultType)
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 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.

getExpressions

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.

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.