java.lang.Object | |
↳ | org.springframework.expression.common.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 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. | |||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.expression.Expression
|
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 |
---|
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 |
---|
Evaluate this expression in the default standard context.
EvaluationException |
---|
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.
expectedResultType | the class the caller would like the result to be |
---|
EvaluationException |
---|
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 |
---|
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 |
---|
Evaluate this expression in the provided context and return the result of evaluation.
context | the context in which to evaluate the expression |
---|
EvaluationException |
---|
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 |
---|---|
expectedResultType | the class the caller would like the result to be |
EvaluationException |
---|
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 |
---|
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 |
---|
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 |
---|
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. 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 |
---|
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.
context | the context in which to evaluate the expression |
---|
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 |
---|
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 |
---|
Determine if an expression can be written to, i.e. setValue() can be called.
context | the context in which the expression should be checked |
---|
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 |
---|
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 |
---|
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 |
---|
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 |
---|