Examples of evaluate()


Examples of org.apache.tiles.request.velocity.autotag.VelocityModelBody.evaluate()

        replay(internalContextAdapter, body, writer);
        VelocityModelBody modelBody = createMockBuilder(VelocityModelBody.class)
                .withConstructor(internalContextAdapter, body, writer)
                .createMock();
        replay(modelBody);
        modelBody.evaluate(writer);
        verify(internalContextAdapter, body, writer, modelBody);
    }

}

Examples of org.apache.uima.ruta.testing.evaluator.ICasEvaluator.evaluate()

      ICasEvaluator evaluator = RutaAddonsPlugin.getCasEvaluatorFactoryById(factoryName)
              .createEvaluator();
      boolean includeSubtypes = store.getBoolean(TestingPreferenceConstants.INCLUDE_SUBTYPES);
      boolean useAllTypes = store.getBoolean(TestingPreferenceConstants.ALL_TYPES);

      CAS resultCas = evaluator.evaluate(goldCas, runCas, excludedTypes, includeSubtypes,
              useAllTypes);

      // store results
      IPath path2Test = td.getPath().removeLastSegments(1);

Examples of org.apache.velocity.app.VelocityEngine.evaluate()

        VelocityContext velocityContext = new VelocityContext();

        velocityContext.put("test1", "@test1@");
        velocityContext.put("test2", "@test2@");

        assertTrue(engine.evaluate(velocityContext, writer, "mylogtag", "$test1$test2"));
        assertEquals(
            "@test1@@test2@",
            writer.getBuffer().toString());
    }
   

Examples of org.apache.ws.notification.topics.expression.TopicExpressionEvaluator.evaluate()

         }

         throw new TopicPathDialectUnknownException( "The dialect " + dialect + " was not recognized." );
      }

      return evaluator.evaluate( topicSpaceSet, topicExpression );
   }

   /**
    * Refresh the set of registered topic expression evaluators using information discovered from the JNDI registry.
    * This method removes any previously registered topic expression evaluators, so handle with care.

Examples of org.apache.ws.resource.properties.query.ExpressionEvaluator.evaluate()

      }
      if(LOG.isDebugEnabled())
      {
          DebugLogQueryExpression(queryExpr, resourcePropertySet);
      }
      return evaluator.evaluate( queryExpr, resourcePropertySet, nsContext );
   }

    private void DebugLogQueryExpression(QueryExpression queryExpr, ResourcePropertySet resourcePropertySet)
    {
        if(queryExpr instanceof XmlBeansQueryExpression)

Examples of org.apache.xalan.templates.AVT.evaluate()

          if (ssNode.getNodeType() == ssNode.ELEMENT_NODE
              && ((Element)ssNode).getTagName().equals("stylesheet")
              && ssNode instanceof ElemLiteralResult)
          {
            AVT avt = ((ElemLiteralResult)ssNode).getLiteralResultAttribute("href");
            String href = avt.evaluate(xctxt,xt, elem);
            String absURI = SystemIDResolver.getAbsoluteURI(href, sysId);
            Templates tmpl = saxTFactory.newTemplates(new StreamSource(absURI));
            TransformerHandler tHandler = saxTFactory.newTransformerHandler(tmpl);
            Transformer trans = tHandler.getTransformer();
           

Examples of org.apache.xpath.domapi.XPathEvaluatorImpl.evaluate()

         // Create an XPath evaluator and pass in the document.
         XPathEvaluator tEvaluator = new XPathEvaluatorImpl(aDocument);
         //XPathNSResolver tResolver = tEvaluator.createNSResolver(aDocument);

         // Evaluate the xpath expression
         XPathResult tResult = (XPathResult)tEvaluator.evaluate(aXPathExpression,
                 aDocument, // contextNode
                 null/*tResolver*/, // support Namespace in XPath expressions
                 XPathResult.STRING_TYPE, // type of returned result
                 null); // construct a new result object (no reuse)

Examples of org.araneaframework.backend.list.memorybased.Expression.evaluate()

    data.put("age", new Long(25));
    data.put("licenseToKill", Boolean.TRUE);
    Expression expr = filter.buildExpression(data);

    // evaluate expression in memory
    Object value = expr.evaluate(new VariableResolver() {
      public Object resolve(Variable variable) {
        if (variable.getName().equals("name")) {
          return "James Bond";
        }
        if (variable.getName().equals("age")) {

Examples of org.asturlinux.frade.currin.machine.Machine.evaluate()

      Logger log = Logger.getLogger("Main");
      log.debug("En la ejecucion de Main");
      Program _p = parseFile(file);
      _p.debug();
      Machine _m = new Machine(_p);
            _m.evaluate(function);
      System.out.println(_m.printResult());
  } catch ( ParsingException pe ) {
      System.out.println("ERROR parseando el fichero");
  } catch ( InterpreterException ie) {
      System.out.println("ERROR ejecutando funcion");

Examples of org.asturlinux.frade.currin.program.type.CurrinExpr.evaluate()

    public String printResult() {
  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("End Program. Begin result evaluation");
  CurrinExpr ce = getResult().evaluate(this);
  for (int i = 0; !ce.inHNF(); i++) {
      ce = ce.evaluate(this);
      ce.print();
  }
  logger.debug("Return evaluated result");
  return ce.print();
    }
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.