示例#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;
 }
示例#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;
 }