public class

StandardOperatorOverloader

extends Object
implements OperatorOverloader
java.lang.Object
   ↳ org.springframework.expression.spel.support.StandardOperatorOverloader

Summary

Public Constructors
StandardOperatorOverloader()
Public Methods
Object operate(Operation operation, Object leftOperand, Object rightOperand)
Execute the specified operation on two operands, returning a result.
boolean overridesOperation(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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.expression.OperatorOverloader

Public Constructors

public StandardOperatorOverloader ()

Public Methods

public Object operate (Operation operation, Object leftOperand, Object rightOperand)

Execute the specified operation on two operands, returning a result. See Operation for supported operations.

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

public boolean overridesOperation (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.

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