org.springframework.binding.expression.support
Class CompositeStringExpression
java.lang.Object
org.springframework.binding.expression.support.CompositeStringExpression
- All Implemented Interfaces:
- Expression
public class CompositeStringExpression
- extends java.lang.Object
- implements Expression
Evaluates an array of expressions to build a concatenated string.
- Author:
- Keith Donald
Method Summary |
java.lang.Object |
evaluate(java.lang.Object target,
EvaluationContext evaluationContext)
Evaluate the expression encapsulated by this evaluator against the provided target object and return the result
of the evaluation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeStringExpression
public CompositeStringExpression(Expression[] expressions)
- Creates a new composite string expression.
- Parameters:
expressions
- the ordered set of expressions that when evaluated will have their results stringed together
to build the composite string
evaluate
public java.lang.Object evaluate(java.lang.Object target,
EvaluationContext evaluationContext)
throws EvaluationException
- Description copied from interface:
Expression
- Evaluate the expression encapsulated by this evaluator against the provided target object and return the result
of the evaluation.
- Specified by:
evaluate
in interface Expression
- Parameters:
target
- the target of the expressionevaluationContext
- the expression evaluation context
- Returns:
- the evaluation result
- Throws:
EvaluationException
- an exception occured during evaluation
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009 Spring Framework. All Rights Reserved.