public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { VariableResolver resolver = factory.getVariableResolver(varName); resolver.setValue( ctx = MathProcessor.doOperations( resolver.getValue(), operation, eval(expr, start, offset, ctx, factory))); return ctx; }
public Object getReducedValueAccelerated( Object ctx, Object thisValue, VariableResolverFactory factory) { VariableResolver resolver = factory.getVariableResolver(varName); resolver.setValue( ctx = MathProcessor.doOperations( resolver.getValue(), operation, knownInType, statement.getValue(ctx, thisValue, factory))); return ctx; }