Operation support simple
types like numbers. By providing an implementation of OperatorOverloader,
a user of the expression language can support these operations on other types.
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true if thisOperatorOverloader supports the specified
operation between the two operandsthe operation to be performed operation, Object the left operand leftOperand, Object the right operand rightOperand)Return |
| operate | back to summary |
|---|---|
| public Object operate(Operation operation, Object leftOperand, Object rightOperand) throws EvaluationException Perform the specified operation on the two operands, returning a result. See
| |
| overridesOperation | back to summary |
|---|---|
| public boolean overridesOperation(Operation operation, Object leftOperand, Object rightOperand) throws EvaluationException Return
| |