|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.expression.spel.SpringELExpression
public class SpringELExpression
A wrapper for a Spring EL Expression allowing it to be used under the Spring
Binding Expression abstraction.
| Constructor Summary | |
|---|---|
SpringELExpression(org.springframework.expression.Expression expression,
java.util.Map<java.lang.String,Expression> expressionVariables,
java.lang.Class<?> expectedType,
org.springframework.core.convert.ConversionService conversionService,
java.util.List<org.springframework.expression.PropertyAccessor> propertyAccessors)
Constructor for SpringELExpression. |
|
| Method Summary | |
|---|---|
java.lang.String |
getExpressionString()
Returns the original string used to create this expression, unmodified. |
java.lang.Object |
getValue(java.lang.Object rootObject)
Evaluate this expression in the provided context and return the result of evaluation. |
java.lang.Class<?> |
getValueType(java.lang.Object rootObject)
Returns the most general type that can be passed to the Expression.setValue(Object, Object) method for the given
context. |
void |
setValue(java.lang.Object rootObject,
java.lang.Object value)
Set this expression in the provided context to the value provided. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpringELExpression(org.springframework.expression.Expression expression,
java.util.Map<java.lang.String,Expression> expressionVariables,
java.lang.Class<?> expectedType,
org.springframework.core.convert.ConversionService conversionService,
java.util.List<org.springframework.expression.PropertyAccessor> propertyAccessors)
expression - a parsed Spring EL expression instance. Must not be null.expressionVariables - provides a mapping between variables names and parsed Spring EL expression instances.
This parameter is optional (may be null).expectedType - the target type expected from the evaluation of the expression or null. This parameter is
optional (may be null).conversionService - the Spring ConversionService instance to use for type conversionpropertyAccessors - propertyAccessors for Spring EL to use when evaluating expressions| Method Detail |
|---|
public java.lang.String getExpressionString()
Expression
getExpressionString in interface Expression
public java.lang.Object getValue(java.lang.Object rootObject)
throws EvaluationException
Expression
getValue in interface ExpressionrootObject - the context to evaluate this expression in
EvaluationException - an exception occurred during expression evaluation
public java.lang.Class<?> getValueType(java.lang.Object rootObject)
throws EvaluationException
ExpressionExpression.setValue(Object, Object) method for the given
context.
getValueType in interface ExpressionrootObject - the context to evaluate
null if the type
information cannot be determined
EvaluationException - an exception occurred during expression evaluation
public void setValue(java.lang.Object rootObject,
java.lang.Object value)
throws EvaluationException
Expression
setValue in interface ExpressionrootObject - the context on which the new value should be setvalue - the new value to set
EvaluationException - an exception occurred during expression evaluationpublic java.lang.String toString()
toString in class java.lang.Object
|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||