979899100101102103104105106107
Expr result = null; try { fireBeforeCalculation(name); result = ((ExprEvaluatable) input).evaluate(); } catch (ExprException e) { result = new ExprError(e); } results.put(name, result); fireAfterCalculation(name, result); } }
168169170171172173174175176177178
if (isBeforeClean()) { fireBeforeCalculation(name); try { evalautor.evaluate(); } catch (ExprException e) { result = new ExprError(e); } fireAfterCalculation(name, result); dirtyFlag.set(false); } }
49505152535455
for (IFunctionProvider p : providers) if (p.hasFunction(function)) return p.evaluate(function); return new ExprError(ExprError.NAME.getErrType(), String.format("Unknown function: %s", function.getName())); }
134135136137138139140141142143144
l.beforeCalculation(name); if (input instanceof ExprEvaluatable) { try { result = ((ExprEvaluatable) input).evaluate(); } catch (ExprException e) { result = new ExprError(e); } } else { result = input; } dirtyFlag.set(false);