Examples of evaluate()


Examples of com.gentics.api.lib.expressionparser.EvaluableExpression.evaluate()

    ExpressionParser expressionParser = ExpressionParser.getInstance();
    try {
      EvaluableExpression expression = (EvaluableExpression) expressionParser.parse(expressionString);
      ExpressionQueryRequest expressionQueryRequest = new ExpressionQueryRequest(
          new PropertyResolver(resolvable), new HashMap<Object, Object>(0));
      result = (String) expression.evaluate(expressionQueryRequest, ExpressionEvaluator.OBJECTTYPE_STRING);
    } catch (ExpressionParserException e) {
      LOGGER.error("Error while evaluating the expression (" + expressionString + ") with the base resolvable ("
          + resolvable + ")", e);
    } catch (ParserException e) {
      LOGGER.error("Error parsing the expression (" + expressionString + ").", e);

Examples of com.github.sommeri.less4j.core.compiler.expressions.ExpressionEvaluator.evaluate()

       
        if (fullNodeDefinition == null) {
          handleUnavailableDetachedRulesetReference(detachedRulesetReference, solvedMixinReferences);
        } else {
          ExpressionEvaluator expressionEvaluator = new ExpressionEvaluator(referenceScope, problemsHandler, configuration);
          Expression evaluatedDetachedRuleset = expressionEvaluator.evaluate(fullNodeDefinition);
          fullNodeDefinition = evaluatedDetachedRuleset;
          if (evaluatedDetachedRuleset.getType() != ASTCssNodeType.DETACHED_RULESET) {
            handleWrongDetachedRulesetReference(detachedRulesetReference, evaluatedDetachedRuleset, solvedMixinReferences);
          } else {
            DetachedRuleset detachedRuleset = (DetachedRuleset) evaluatedDetachedRuleset;

Examples of com.google.common.css.compiler.passes.BooleanExpressionEvaluator.evaluate()

      // The node can be evaluated at compile time
      BooleanExpressionEvaluator evaluator = new BooleanExpressionEvaluator(
          currentConditional.getCondition(), trueConditions);

      CssBooleanExpressionNode result = evaluator.evaluate();
      boolean isTrue = CssBooleanExpressionNode.Type.TRUE_CONSTANT.equals(result.getValue());

      if (!isTrue) {
        // any node evaluated to false can be removed
      } else if (!runtimeEvaluationNodeFound) {

Examples of com.google.gwt.thirdparty.common.css.compiler.passes.BooleanExpressionEvaluator.evaluate()

      // The node can be evaluated at compile time
      BooleanExpressionEvaluator evaluator = new BooleanExpressionEvaluator(
          currentConditional.getCondition(), trueConditions);

      CssBooleanExpressionNode result = evaluator.evaluate();
      boolean isTrue = CssBooleanExpressionNode.Type.TRUE_CONSTANT.equals(result.getValue());

      if (!isTrue) {
        // any node evaluated to false can be removed
      } else if (!runtimeEvaluationNodeFound) {

Examples of com.google.gxp.compiler.base.StringConstant.evaluate()

  }

  public void testStr() throws Exception {
    String value = "Hello, world!";
    StringConstant result = str(value);
    assertEquals(value, result.evaluate());
  }

  public void testEscape() throws Exception {
    Expression subexpression = expr("\"foo < bar\"");
    Schema schema = htmlSchema();

Examples of com.google.javascript.rhino.JSTypeExpression.evaluate()

      String name = paramNode.getString();
      JSTypeExpression expression = info.getParameterType(name);
      Preconditions.checkNotNull(expression,
          "Missing JSDoc for parameter %s of template function %s",
          name, fnName);
      JSType type = expression.evaluate(null, compiler.getTypeRegistry());
      Preconditions.checkNotNull(type);
      params.add(name);
      paramTypes.put(name, type);
    }

Examples of com.google.refine.expr.Evaluable.evaluate()

                "a.value",
                };
        for (String test : tests) {
            try {
                Evaluable eval = MetaParser.parse("grel:" + test);
                Object result = eval.evaluate(bindings);
                Assert.assertTrue(result instanceof EvalError );
            } catch (ParsingException e) {
                Assert.fail("Unexpected parse failure: " + test);               
            }
        }

Examples of com.google.sitebricks.Evaluator.evaluate()

        final WidgetChain mockChain = new ProceedingWidgetChain() {
            @Override
            public void render(final Object bound, Respond respond) {
                times[0]++;

                final Object thing = evaluator.evaluate(exp, bound);
                assert thing instanceof Thing : "Contextual (current) var not set: " + thing;
                assert A_NAME.equals(((Thing)thing).getName());
            }
        };

Examples of com.halware.nakedide.eclipse.ext.annot.mdd.MetadataDescriptor.evaluate()

  }

  public Object getValue(Object element, String property) {
   
    MetadataDescriptor metadataDescriptor = getMetadataDescriptor(property);
    Object value = metadataDescriptor.evaluate(element);
   
    getLOGGER().debug("getValue() returning: >>" + value + "<<");
   
    return value;
  }

Examples of com.icl.saxon.expr.Expression.evaluate()

            Context context = new Context();
            context.setContextNode((NodeInfo)contextNode);
            context.setPosition(1);
            context.setLast(1);

            return expression.evaluate(context);
        }
        catch (final Exception e)
        {
            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Failed to evaluate '" + str + "'", e);
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.