Examples of evaluate()


Examples of org.springframework.scripting.support.StandardScriptEvaluator.evaluate()

  @Test
  public void testGroovyScriptFromStringUsingJsr223() {
    StandardScriptEvaluator evaluator = new StandardScriptEvaluator();
    evaluator.setLanguage("Groovy");
    Object result = evaluator.evaluate(new StaticScriptSource("return 3 * 2"));
    assertEquals(6, result);
  }

  @Test
  public void testGroovyScriptFromFileUsingJsr223() {

Examples of org.teiid.query.eval.Evaluator.evaluate()

        int columns = collectedExpressions.size();
              List exprTuple = new ArrayList(columns);
              for(int col = 0; col<columns; col++) {
                  // The following call may throw BlockedException, but all state to this point
                  // is saved in class variables so we can start over on building this tuple
                  Object value = eval.evaluate(collectedExpressions.get(col), tuple);
                  exprTuple.add(value);
              }
              return exprTuple;
      }
    };

Examples of org.terrier.evaluation.Evaluation.evaluate()

          String evaluationResultFilename =
            resultFilename.substring(
              0,
              resultFilename.lastIndexOf('.'))
              + ".eval";
          te.evaluate(resultFilename);
          if (evaluation_per_query)
            te.writeEvaluationResultOfEachQuery(evaluationResultFilename);
          else
            te.writeEvaluationResult(evaluationResultFilename);
        }

Examples of org.w3c.dom.xpath.XPathEvaluator.evaluate()

      // Create an XPath evaluator and pass in the document.
      XPathEvaluator evaluator = new XPathEvaluatorImpl(doc);
      XPathNSResolver resolver = evaluator.createNSResolver(doc);
     
      // Evaluate the xpath expression
      XPathResult result = (XPathResult)evaluator.evaluate(xpath, doc, resolver, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);
     

      // Serialize the found nodes to System.out.
      System.out.println("<output>");
                 

Examples of org.w3c.dom.xpath.XPathExpression.evaluate()

    Object result)
    throws XPathException, DOMException {
     
    XPathExpression xpathExpression = createExpression(expression, resolver);
   
    return  xpathExpression.evaluate(contextNode, type, result);
  }

}

Examples of org.webcamp.questionary.services.impl.PercentileScore.evaluate()

    progress.getAnswers().add(userAnswers);

    if (progress.getCurrentQuestionIndex() == progress.getQuestionary().getQuestions().size() - 1) {

      PercentileScore ps = new PercentileScore();
      Score score = ps.evaluate(progress.getQuestionary(), progress.getAnswers());

      User user = (User) session.getAttribute("user");
      QuestionaryResult result = new QuestionaryResult();
      result.setUserId(user.getId());
      result.setDate(new Date());

Examples of org.wso2.carbon.identity.entitlement.pdp.EntitlementEngine.evaluate()

                    .getExtensions();
            for (Iterator iterator = extensions.iterator(); iterator.hasNext();) {
                PIPExtension pipExtension = (PIPExtension) iterator.next();
                pipExtension.update(req);
            }
            response = entitlementEngine.evaluate(req);
            return policyResponseBuilder.getXacmlResponse(response);
        } catch (Exception e) {
            log.error("Error occured while eveluating XACML request", e);
            throw new Exception("Error occured while eveluating XACML request");
        }

Examples of org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptEngine.evaluate()

            try {
                // Check whether this is a file in the service.resources directory
                if (f.exists() && !f.isDirectory()) {
                    reader = new FileReader(f);
                    engine.setScriptName(path);
                    engine.evaluate(reader);
                } else {
                    // This is not a file.. So we check whether this is a URL
                    //todo need to check this
                    //                    readFromURI(engine, baseURI, path);
                }

Examples of org.xmedia.metak.eval.SesameSparqlEvaluator.evaluate()

      if (!prologPrefixTable.containsKey(prefix)){
        queryString = "PREFIX " + prefix + ": <" + (String)defaultPrefixTable.get(prefix) + ">" + NL + queryString;       
      }
    }
   
    Map<Set<Value>, ComplexProvenance> metadata = eval.evaluate(queryString);
       
    Map<Value, ComplexProvenance> provenance = new HashMap<Value, ComplexProvenance>();
    java.util.Iterator<Value> it;
    for (Set<Value> values: metadata.keySet()){
      it = values.iterator();

Examples of org.yaac.server.egql.evaluator.Evaluator.evaluate()

        public FileDownloadPath apply(String pathStr) {
          return AutoBeanUtil.decode(FileDownloadPath.class, pathStr);
        }
      });
     
      EvaluationResult r = e.evaluate(new ProcessDataRecord() {
        @Override
        public FileDownloadPath lookupFileReference(Integer index) {
          return files.get(index);
        }
       
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.