Examples of evaluate()


Examples of org.pentaho.reporting.libraries.formula.operators.InfixOperator.evaluate()

    TypeValuePair result = optimizedHeadValue.evaluate();
    for (int i = 0; i < operandsArray.length; i++)
    {
      final LValue value = operandsArray[i];
      final InfixOperator op = operatorArray[i];
      result = op.evaluate(getContext(), result, value.evaluate());
    }
    return result;
  }

  public void add(final InfixOperator operator, final LValue operand)

Examples of org.picocontainer.gems.constraints.And.evaluate()

            .will(returnValue(Boolean.TRUE)).id("c2");
        mockC3.expects(once()).method("evaluate")
            .with(same(adapter)).after(mockC2, "c2")
            .will(returnValue(Boolean.TRUE));

        assertTrue(c.evaluate(adapter));
    }
   
    public void testAndAllChildrenAreVisitedBreadthFirst() {
        Constraint c = new And(c1, c2, c3);
       

Examples of org.picocontainer.gems.constraints.Constraint.evaluate()

            .will(returnValue(Boolean.TRUE)).id("c2");
        mockC3.expects(once()).method("evaluate")
            .with(same(adapter)).after(mockC2, "c2")
            .will(returnValue(Boolean.TRUE));

        assertTrue(c.evaluate(adapter));
    }
   
    public void testAndAllChildrenAreVisitedBreadthFirst() {
        Constraint c = new And(c1, c2, c3);
       

Examples of org.picocontainer.gems.constraints.Or.evaluate()

            .will(returnValue(Boolean.FALSE)).id("c2");
        mockC3.expects(once()).method("evaluate")
            .with(same(adapter)).after(mockC2, "c2")
            .will(returnValue(Boolean.FALSE));

        assertFalse(c.evaluate(adapter));
    }
   
    public void testOrAllChildrenAreVisitedBreadthFirst() {
        Constraint c = new Or(c1, c2, c3);
       

Examples of org.renjin.compiler.ir.tac.IRBody.evaluate()

  private SEXP evalIR(String text) {
    System.out.println("======= " + text + "================");
    IRBody block = build(text);
    System.out.println(block.toString());   
    System.out.println();
    return block.evaluate(topLevelContext);
  }
 
 
  @Test
  public void closureBody() throws IOException {

Examples of org.renjin.eval.Context.evaluate()

  @Test
  public void test() throws IOException {
      Context context = Context.newTopLevelContext();
      context.init();
   
      context.evaluate(RParser.parseSource("library(aspect, verbose=TRUE)\n"));
  }
}

Examples of org.springframework.beans.factory.config.BeanExpressionResolver.evaluate()

    String placeholdersResolved = this.configurableBeanFactory.resolveEmbeddedValue(defaultValue);
    BeanExpressionResolver exprResolver = this.configurableBeanFactory.getBeanExpressionResolver();
    if (exprResolver == null) {
      return defaultValue;
    }
    return exprResolver.evaluate(placeholdersResolved, this.expressionContext);
  }

  /**
   * Invoked when a named value is required, but {@link #resolveName(String, MethodParameter, NativeWebRequest)}
   * returned {@code null} and there is no default value. Subclasses typically throw an exception in this case.

Examples of org.springframework.integration.xquery.support.XQueryParameter.evaluate()

        for(String parameter:xQueryParameters) {
          XQueryParameter xQueryParam = xQueryParameterMap.get(parameter);
          //TODO: Check what possible values can be supported to be set here
          //Accordingly do we need to set the third parameter for XQItemType
          expression.bindObject(new QName(xQueryParam.getParameterName()),
                          xQueryParam.evaluate(message), null);
        }
      }

      XQResultSequence result = expression.executeQuery();
      return mapper.mapResults(result);

Examples of org.springframework.scripting.ScriptEvaluator.evaluate()

        //ResourceScriptSource 外部的
        ScriptSource source = new StaticScriptSource("i+j");
        Map<String, Object> args = new HashMap<>();
        args.put("i", 1);
        args.put("j", 2);
        System.out.println(scriptEvaluator.evaluate(source, args));
    }
}

Examples of org.springframework.scripting.groovy.GroovyScriptEvaluator.evaluate()

        //ResourceScriptSource 外部的
        ScriptSource source = new StaticScriptSource("i+j");
        Map<String, Object> args = new HashMap<>();
        args.put("i", 1);
        args.put("j", 2);
        System.out.println(scriptEvaluator.evaluate(source, args));
    }
}
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.