Examples of evaluate()


Examples of com.salesforce.phoenix.expression.LikeExpression.evaluate()

            }
        }
        Expression expression = new LikeExpression(children);
        if (node.isStateless()) {
            ImmutableBytesWritable ptr = context.getTempPtr();
            if (!expression.evaluate(null, ptr)) {
                return LiteralExpression.newConstant(null, expression.isDeterministic());
            } else {
                return LiteralExpression.newConstant(Boolean.TRUE.equals(PDataType.BOOLEAN.toObject(ptr)) ^ node.isNegate(), expression.isDeterministic());
            }
        }

Examples of com.salesforce.phoenix.expression.StringConcatExpression.evaluate()

                .setMessage("Concatenation does not support "+ type +" in expression" + node).build().buildException();
            }
        }
        ImmutableBytesWritable ptr = context.getTempPtr();
        if (expression.isStateless()) {
            if (!expression.evaluate(null,ptr) || ptr.getLength() == 0) {
                return LiteralExpression.newConstant(null, expression.getDataType(), expression.isDeterministic());
            }
            return LiteralExpression.newConstant(expression.getDataType().toObject(ptr), expression.getDataType(), expression.isDeterministic());
        }
        return wrapGroupByExpression(expression);

Examples of com.scratchdisk.script.ScriptEngine.evaluate()

   * </code>
   */
  public static void evaluate(Context cx, Scriptable thisObj, Object[] args,
      Function funObj) {
    ScriptEngine engine = ScriptEngine.getEngineByName("JavaScript");
    engine.evaluate(Context.toString(args[0]), "evaluate",
        engine.getScope(thisObj));
  }
}

Examples of com.sk89q.worldedit.internal.expression.Expression.evaluate()

                final Vector current = new Vector(x, y, z);
                environment.setCurrentBlock(current);
                final Vector scaled = current.subtract(zero).divide(unit);

                try {
                    if (expression.evaluate(scaled.getX(), scaled.getY(), scaled.getZ(), defaultMaterial.getType(), defaultMaterial.getData()) <= 0) {
                        return null;
                    }

                    return new BaseBlock((int) typeVariable.getValue(), (int) dataVariable.getValue());
                } catch (Exception e) {

Examples of com.sk89q.worldedit.scripting.CraftScriptEngine.evaluate()

        vars.put("argv", args);
        vars.put("context", scriptContext);
        vars.put("player", player);

        try {
            engine.evaluate(script, filename, vars);
        } catch (ScriptException e) {
            player.printError("Failed to execute:");
            player.printRaw(e.getMessage());
            logger.log(Level.WARNING, "Failed to execute script", e);
        } catch (NumberFormatException e) {

Examples of com.softwaremill.common.cdi.el.ELEvaluator.evaluate()

        ctx.responseComplete();
    }

    private void evaluateSecurityExpression(FacesContext ctx, Page page) {
        ELEvaluator evaluator = BeanInject.lookup(ELEvaluator.class);
        Boolean securityResult = evaluator.evaluate(page.getSecurityEL(), Boolean.class);
        if (securityResult == null) {
            throw new RuntimeException("Security EL: " + page.getSecurityEL() + " on page " + page.s() + " doesn't resolve to Boolean");
        }
        if (!securityResult) {
            nav.responseForbidden(ctx);

Examples of com.sonyericsson.hudson.plugins.metadata.search.antlr.QueryWalker.evaluate()

                MetadataJobProperty property =
                        (MetadataJobProperty)project.getProperty(MetadataJobProperty.class);
                if (property != null) {
                    CommonTreeNodeStream nodes = new CommonTreeNodeStream(queryTree);
                    QueryWalker walker = new QueryWalker(nodes);
                    boolean matchStatus = walker.evaluate(property);
                    if (matchStatus) {
                        matchedItems.add(item);
                    }
                }
            }

Examples of com.starflow.wf.engine.core.expression.xpath.XPathBuilder.evaluate()

    if(logger.isDebugEnabled()) {
      logger.debug("Xpath 路径:{}, xml内容{}", value, xml);
    }
   
    XPathBuilder builder = XPathBuilder.xpath(value.substring(index+1));
    String result = builder.evaluate(xml);
   
    if(logger.isDebugEnabled()) {
      logger.debug("Xpath 解析结果:{}", result.trim());
    }
   

Examples of com.sun.corba.se.spi.orbutil.closure.Closure.evaluate()

    {
        Closure cl = (Closure)nameToClosure.get( name ) ;
        if (cl == null)
            return null ;

        return (org.omg.CORBA.Object)(cl.evaluate()) ;
    }

    public synchronized java.util.Set list()
    {
        return nameToClosure.keySet() ;

Examples of com.sun.tools.corba.se.idl.constExpr.Expression.evaluate()

            if (u.branches ().size () == 1 &&
                (u.defaultBranch () != null || firstBranch.labels.size () == 2)) {
                noCases = true;
            } else {
                Expression expr = (Expression)(firstBranch.labels.firstElement()) ;
                Boolean bool = (Boolean)(expr.evaluate()) ;
                firstBranchIsTrue = bool.booleanValue ();
            }
        } catch (EvaluationException ex) {
            // no action
        }
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.