Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }