Class StandardOperatorOverloader
java.lang.Object
org.springframework.expression.spel.support.StandardOperatorOverloader
- All Implemented Interfaces:
- OperatorOverloader
Standard implementation of 
OperatorOverloader.- Since:
- 3.0
- Author:
- Juergen Hoeller
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionExecute the specified operation on two operands, returning a result.booleanoverridesOperation(Operation operation, Object leftOperand, Object rightOperand) Return true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.
- 
Constructor Details- 
StandardOperatorOverloaderpublic StandardOperatorOverloader()
 
- 
- 
Method Details- 
overridesOperationpublic boolean overridesOperation(Operation operation, @Nullable Object leftOperand, @Nullable Object rightOperand) throws EvaluationException Description copied from interface:OperatorOverloaderReturn true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.- Specified by:
- overridesOperationin interface- OperatorOverloader
- Parameters:
- operation- the operation to be performed
- leftOperand- the left operand
- rightOperand- the right operand
- Returns:
- true if the OperatorOverloader supports the specified operation between the two operands
- Throws:
- EvaluationException- if there is a problem performing the operation
 
- 
operatepublic Object operate(Operation operation, @Nullable Object leftOperand, @Nullable Object rightOperand) throws EvaluationException Description copied from interface:OperatorOverloaderExecute the specified operation on two operands, returning a result. SeeOperationfor supported operations.- Specified by:
- operatein interface- OperatorOverloader
- Parameters:
- operation- the operation to be performed
- leftOperand- the left operand
- rightOperand- the right operand
- Returns:
- the result of performing the operation on the two operands
- Throws:
- EvaluationException- if there is a problem performing the operation
 
 
-