类 StandardOperatorOverloader
java.lang.Object
cn.taketoday.expression.spel.support.StandardOperatorOverloader
- 所有已实现的接口:
OperatorOverloader
Standard implementation of
OperatorOverloader.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
-
字段概要
从接口继承的字段 cn.taketoday.expression.OperatorOverloader
STANDARD -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Execute 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.
-
构造器详细资料
-
StandardOperatorOverloader
public StandardOperatorOverloader()
-
-
方法详细资料
-
overridesOperation
public boolean overridesOperation(Operation operation, @Nullable Object leftOperand, @Nullable Object rightOperand) throws EvaluationException 从接口复制的说明:OperatorOverloaderReturn true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.- 指定者:
overridesOperation在接口中OperatorOverloader- 参数:
operation- the operation to be performedleftOperand- the left operandrightOperand- the right operand- 返回:
- true if the OperatorOverloader supports the specified operation between the two operands
- 抛出:
EvaluationException- if there is a problem performing the operation
-
operate
public Object operate(Operation operation, @Nullable Object leftOperand, @Nullable Object rightOperand) throws EvaluationException 从接口复制的说明:OperatorOverloaderExecute the specified operation on two operands, returning a result. SeeOperationfor supported operations.- 指定者:
operate在接口中OperatorOverloader- 参数:
operation- the operation to be performedleftOperand- the left operandrightOperand- the right operand- 返回:
- the result of performing the operation on the two operands
- 抛出:
EvaluationException- if there is a problem performing the operation
-