org.springframework.expression.Expression |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the original string used to create this expression, unmodified.
| |||||||||||
Evaluate this expression against the specified root object
| |||||||||||
Evaluate the expression in the default context against the specified root object.
| |||||||||||
Evaluate this expression in the default standard context.
| |||||||||||
Evaluate the expression in the default context.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Evaluate this expression in the provided context and return the result of evaluation.
| |||||||||||
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.
| |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method using the default context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method for the given context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method using the default context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method for the given context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object) method for
the given context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method using the default context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method for the given context. | |||||||||||
Returns the most general type that can be passed to the
setValue(EvaluationContext, Object)
method using the default context. | |||||||||||
Determine if an expression can be written to, i.e.
| |||||||||||
Determine if an expression can be written to, i.e.
| |||||||||||
Determine if an expression can be written to, i.e.
| |||||||||||
Set this expression in the provided context to the value provided.
| |||||||||||
Set this expression in the provided context to the value provided.
| |||||||||||
Set this expression in the provided context to the value provided.
|
Returns the original string used to create this expression, unmodified.
Evaluate this expression against the specified root object
rootObject | the root object against which properties/etc will be resolved |
---|
EvaluationException | if there is a problem during evaluation |
---|
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.
rootObject | the root object against which properties/etc will be resolved |
---|---|
desiredResultType | the class the caller would like the result to be |
EvaluationException | if there is a problem during evaluation |
---|
Evaluate this expression in the default standard context.
EvaluationException | if there is a problem during evaluation |
---|
Evaluate the expression in the default context. If the result of the evaluation does not match (and cannot be converted to) the expected result type then an exception will be returned.
desiredResultType | the class the caller would like the result to be |
---|
EvaluationException | if there is a problem during evaluation |
---|
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.
context | the context in which to evaluate the expression |
---|---|
rootObject | the root object against which properties/etc will be resolved |
EvaluationException | if there is a problem during evaluation |
---|
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.
context | the context in which to evaluate the expression |
---|---|
rootObject | the root object against which properties/etc will be resolved |
desiredResultType | the class the caller would like the result to be |
EvaluationException | if there is a problem during evaluation |
---|
Evaluate this expression in the provided context and return the result of evaluation.
context | the context in which to evaluate the expression |
---|
EvaluationException | if there is a problem during evaluation |
---|
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.
context | the context in which to evaluate the expression |
---|---|
desiredResultType | the class the caller would like the result to be |
EvaluationException | if there is a problem during evaluation |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method using the default context.
rootObject | the root object against which to evaluate the expression |
---|
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method for the given context. The supplied root object overrides any specified in the context.
context | the context in which to evaluate the expression |
---|---|
rootObject | the root object against which to evaluate the expression |
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method using the default context.
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method for the given context.
context | the context in which to evaluate the expression |
---|
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method for
the given context. The supplied root object overrides any specified in the context.
context | the context in which to evaluate the expression |
---|---|
rootObject | the root object against which to evaluate the expression |
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method using the default context.
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method for the given context.
context | the context in which to evaluate the expression |
---|
EvaluationException | if there is a problem determining the type |
---|
Returns the most general type that can be passed to the setValue(EvaluationContext, Object)
method using the default context.
rootObject | the root object against which to evaluate the expression |
---|
EvaluationException | if there is a problem determining the type |
---|
Determine if an expression can be written to, i.e. setValue() can be called.
rootObject | the root object against which to evaluate the expression |
---|
EvaluationException | if there is a problem determining if it is writable |
---|
Determine if an expression can be written to, i.e. setValue() can be called.
context | the context in which the expression should be checked |
---|
EvaluationException | if there is a problem determining if it is writable |
---|
Determine if an expression can be written to, i.e. setValue() can be called. The supplied root object overrides any specified in the context.
context | the context in which the expression should be checked |
---|---|
rootObject | the root object against which to evaluate the expression |
EvaluationException | if there is a problem determining if it is writable |
---|
Set this expression in the provided context to the value provided.
context | the context in which to set the value of the expression |
---|---|
value | the new value |
EvaluationException | if there is a problem during evaluation |
---|
Set this expression in the provided context to the value provided. The supplied root object overrides any specified in the context.
context | the context in which to set the value of the expression |
---|---|
rootObject | the root object against which to evaluate the expression |
value | the new value |
EvaluationException | if there is a problem during evaluation |
---|
Set this expression in the provided context to the value provided.
rootObject | the root object against which to evaluate the expression |
---|---|
value | the new value |
EvaluationException | if there is a problem during evaluation |
---|