Examples of evaluate()


Examples of info.bliki.wiki.template.expr.eval.DoubleEvaluator.evaluate()

        expression = conditionBuffer.toString();
      }

      try {
        DoubleEvaluator engine = new DoubleEvaluator();
        double d = engine.evaluate(expression);
        return getWikiNumberFormat(d,model);
      } catch (Exception e) {
        if (Configuration.DEBUG) {
          System.out.println("#expr error: "+expression);
        }

Examples of interfaces.IRouge.evaluate()

        parsedArgs.getInt(Config.GRAM_SIZE.toString()),
        parsedArgs.getChar(Config.METHOD.toString()),
        parsedArgs.getDouble(Config.ALPHA.toString())
        );

      Map<ScoreType, Double> scores = rouge.evaluate();

      rss.addValue(scores.get(ScoreType.R));
      pss.addValue(scores.get(ScoreType.P));
      fss.addValue(scores.get(ScoreType.F));
  }

Examples of javarepl.Evaluator.evaluate()

    }

    public static Evaluator evaluator(String... expressions) {
        Evaluator evaluator = new Evaluator();
        for (String expression : expressions) {
            evaluator.evaluate(expression);
        }
        return evaluator;
    }

    public static String importMembersOf(Class<?> aClass) {

Examples of javax.servlet.jsp.el.Expression.evaluate()

  public boolean isRelaxed(VariableResolver resolver) {
    Expression expr = inputConfig.getParsedRelaxExpression();
    if (expr != null) {
      Object result = null;
      try {
        result = expr.evaluate(resolver);
      } catch (Exception e) {
        log.error("Evaluation error in '" + inputConfig.getRelax() + "'", e);
        return false;
      }
      if (result instanceof Boolean) {

Examples of javax.servlet.jsp.el.ExpressionEvaluator.evaluate()

        String string = super.getValue();

        ExpressionEvaluator eval = pageContext.getExpressionEvaluator();

        try {
            Object evaluated = eval.evaluate(
                    string,
                    Object.class,
                    pageContext.getVariableResolver(),
                    null
            );

Examples of javax.xml.xpath.XPath.evaluate()

                return context.getVariable(variableName.getLocalPart());
            }
        });

    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
        return xpathEvaluator.evaluate(this.expression, builder.newDocument(), XPathConstants.BOOLEAN);
    }

    public String toString() {
        return this.expression;
    }

Examples of javax.xml.xpath.XPathExpression.evaluate()

        if (target != null) {
            org.w3c.dom.Node parent = null;
                parent = ((org.w3c.dom.Node) target).getParentNode();
               
               
            targetElem = exprTo.evaluate(parent, XPathConstants.NODE);
           
            if (targetElem == null) {
                throw new RuntimeException("Nothing was selected by the to expression " + to + " on " + targetExpr);
            }
        }

Examples of javax.xml.xpath.XPathFunction.evaluate()

                } else {
                    argList.add ( i, argument );
                }
            }
      
            return ( xpathFunction.evaluate ( argList ));

        } catch ( XPathFunctionException xfe ) {
            // If we get XPathFunctionException then we want to terminate
            // further execution by throwing WrappedRuntimeException
            throw new com.sun.org.apache.xml.internal.utils.WrappedRuntimeException ( xfe );

Examples of jbprocess.bpel.xpath.XpathBinaryOpExpression.evaluate()

         
          from = BPELFactory.eINSTANCE.createFrom();
          from.setVariable(operandNodeData.variable);
          fromQuery = BPELFactory.eINSTANCE.createQuery();
          fromQuery.setQueryLanguage(XPATH_NAMESPACE);
          fromQuery.setValue(xpathBinOperation.evaluate());
          from.setQuery(fromQuery);
         
          to = BPELFactory.eINSTANCE.createTo();
          to.setVariable(operandNodeData.variable);
         

Examples of jmathexpr.Expression.evaluate()

        Expression contains, evaluated;
        Interval interval = new Interval(true, N.create(0), N.create(1), true); // [0, 1]
        System.out.printf("%s%n", interval);

        contains = new ElementOf(R.create(-1), interval);
        evaluated = contains.evaluate();
        System.out.printf("  %s : %s%n", contains, evaluated);
        assertEquals(evaluated, TruthValue.False);
       
        contains = new ElementOf(R.create(0), interval);
        evaluated = contains.evaluate();       
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.