addOperator<T extends ILazyOperator> method
T
addOperator<T extends ILazyOperator>(
- T operator
Adds an operator to the list of supported operators.
operator
- The operator to add.
Returns the previous operator with that name, or null
if there was none.
Implementation
T addOperator<T extends ILazyOperator>(T operator) {
String key = operator.getOper();
if (operator is AbstractUnaryOperator) {
key += "u";
}
operators[key] = operator;
return operator;
}