case OP_Negative:{ // NOSONAR ExprValue value = expr.getValue(provider); switch (value.getDataType()){ case Long: return new ExprValue(-value.getLong()); default: throw new FormulaException("Can not get a negative value of " + value.getDataType()); case OP_Not:{ // NOSONAR ExprValue value = expr.getValue(provider); if (value.getDataType() == DataType.Boolean){ return new ExprValue(!value.getBoolean()); throw new FormulaException("Can not get a negative value of " + value.getDataType());