Examples of evaluate()


Examples of org.htmlparser.scanners.TagScanner.evaluate()

            // Now, get the scanner associated with this.
            TagScanner scanner = (TagScanner) scanners.get(firstWord);

            // Now do a deep check
            if (scanner != null
                && scanner.evaluate(
                    tagContents.toString(),
                    reader.getPreviousOpenScanner()))
            {
                found = true;
                TagScanner save;

Examples of org.jacorb.notification.filter.FilterConstraint.evaluate()

        EvaluationResult _res;
        _root.acceptPostOrder(new TCLCleanUp());

        EvaluationContext _context = new EvaluationContext(getEvaluator());

        _res = _evaluator.evaluate(_context, event);

        assertEquals("expected " + _root.toStringTree() + " == " + _expect.toStringTree(), _expect
                .evaluate(null), _res);
    }
}

Examples of org.jacorb.notification.filter.etcl.AbstractTCLNode.evaluate()

        AbstractTCLNode sndNode = TCLParser.parse(expression);

        EvaluationContext _context = new EvaluationContext(getEvaluator());

        EvaluationResult pre_res = fstNode.evaluate(_context);
        EvaluationResult pst_res = sndNode.evaluate(_context);

        assertEquals("expected " + fstNode.toStringTree() + " == " + sndNode.toStringTree(),
                pre_res, pst_res);
    }

Examples of org.jacorb.notification.filter.etcl.ETCLFilterConstraint.evaluate()

        EvaluationResult _res;
        _root.acceptPostOrder(new TCLCleanUp());

        EvaluationContext _context = new EvaluationContext(getEvaluator());

        _res = _evaluator.evaluate(_context, event);

        assertEquals("expected " + _root.toStringTree() + " == " + _expect.toStringTree(), _expect
                .evaluate(null), _res);
    }
}

Examples of org.jakstab.rtl.expressions.RTLExpression.evaluate()

          );
          // set next label to jump target
          nextLabel = new Location(new AbsoluteAddress(targetValue));
        }
      }
      assumption = assumption.evaluate(new Context());
      RTLAssume assume = new RTLAssume(assumption, stmt);
      assume.setLabel(stmt.getLabel());
      assume.setNextLabel(nextLabel);
      results.add(new CFAEdge(stmt.getLabel(), nextLabel, assume));
    }

Examples of org.jakstab.rtl.statements.RTLStatement.evaluate()

    if (!substCtx.getAssignments().isEmpty()) {
      //logger.info("Old stmt: " + stmt);
      RTLStatement newStmt = stmt.copy().evaluate(substCtx);
      //logger.info("New stmt: " + newStmt);
      if (newStmt != null) {
        return newStmt.evaluate(new Context());
      } else {
        RTLSkip skip = new RTLSkip();
        skip.setLabel(stmt.getLabel());
        skip.setNextLabel(stmt.getNextLabel());
        return skip;

Examples of org.jamesii.simspex.spdm.evaluation.evaluator.FullPredictorEvaluator.evaluate()

    IDataSelector testDataSelector =
        new SimpleDataSelector(trainEndIndex, data.size());
    List<PerformanceTuple> testData = testDataSelector.selectData(data);
    IPredictorEvaluator sev = new FullPredictorEvaluator();

    result.add(sev.evaluate(predictor, trainingData, testData, parameters));
    return result;
  }
}

Examples of org.jamesii.simspex.spdm.evaluation.evaluator.IPredictorEvaluator.evaluate()

    IDataSelector testDataSelector =
        new SimpleDataSelector(trainEndIndex, data.size());
    List<PerformanceTuple> testData = testDataSelector.selectData(data);
    IPredictorEvaluator sev = new FullPredictorEvaluator();

    result.add(sev.evaluate(predictor, trainingData, testData, parameters));
    return result;
  }
}

Examples of org.javex.ExpressionImpl.evaluate()

    try {
      ExpressionImpl x1 = new ExpressionImpl(s);
      java.util.List l=external;
      x1.setExternalFunctions(l);
      x1.prepare();
      Object o1 = x1.evaluate(variables);

      if(JavexUtils.isNumber(o1) && JavexUtils.isNumber(r)){
        if((Double)JavexUtils.getValue(o1)-(Double)JavexUtils.getValue(r)!=0){
          System.out.println(s + " : error, was " + o1.toString() + " expected " + r.toString());
        }

Examples of org.javex.evaluators.Evaluator.evaluate()

    Collections.reverse(s);
   
    Evaluator eval = Evaluator.getEvaluator(evaluatorClass);

    try {
      Object o = eval.evaluate(s);
      stack.set(stack.pointer, o.toString());
      //stack.pointer++;
      return o;
    } catch (Exception e) {
      throw new WrongValuesException(simbol);
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.