Examples of Expression


Examples of client.net.sf.saxon.ce.expr.Expression

     */

    public Expression bind(StructuredQName functionName, Expression[] staticArgs, StaticContext env, Container container)
            throws XPathException {
        for (FunctionLibrary lib : libraryList) {
            Expression func = lib.bind(functionName, staticArgs, env, container);
            if (func != null) {
                return func;
            }
        }
        return null;
View Full Code Here

Examples of com.airhacks.enhydrator.transform.Expression

            Sink dlq,
            String sql,
            Consumer<String> flowListener, Object... params) {
        this.flowListener = flowListener;
        this.filterExpressions = filterExpressions;
        this.expression = new Expression(flowListener);
        this.filterExpression = new FilterExpression(flowListener);
        this.source = source;
        this.beforeTransformations = before;
        this.namedEntryFunctions = namedFunctions;
        this.expressions = expressions;
View Full Code Here

Examples of com.alibaba.antx.config.generator.expr.Expression

            Map.Entry entry = (Map.Entry) i.next();
            String name = (String) entry.getKey();
            Object value = entry.getValue();

            if (value instanceof String) {
                Expression expr = CompositeExpression.parse((String) value);

                if (expr != null) {
                    value = expr;
                }
            }
View Full Code Here

Examples of com.alibaba.citrus.expr.Expression

     *
     * @param expr 表达式字符串
     * @return 表达式
     */
    public Expression createExpression(final String expr) throws ExpressionParseException {
        final Expression jexlExpression;

        try {
            jexlExpression = new JexlExpression(engine.createExpression(expr));
        } catch (Exception e) {
            throw new ExpressionParseException(e);
        }

        if (isSupportContextVariables() && isValidContextVariableName(expr)) {
            return new ExpressionSupport() {
                /**
                 * 取得表达式字符串表示。
                 *
                 * @return 表达式字符串表示
                 */
                public String getExpressionText() {
                    return expr;
                }

                /**
                 * 在指定的上下文中计算表达式。
                 *
                 * @param context <code>ExpressionContext</code>上下文
                 * @return 表达式的计算结果
                 */
                public Object evaluate(ExpressionContext context) {
                    // 首先执行jexl表达式
                    Object value = jexlExpression.evaluate(context);

                    // 如果jexl表达式结果为null,则从context中直接取值
                    if (value == null) {
                        value = context.get(expr);
                    }
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.Expression

            ListBufferMirror list = context.createListBuffer(input.getDataType(), bufferKind);
            buffers.add(list);

            context.addBegin(list.createBegin());

            Expression proc = context.getProcessInput(input);
            context.addProcess(input, list.createAdvance(proc));

            context.addEnd(list.createEnd());

            arguments.add(list.get());
        }
        for (FlowElementPortDescription output : desc.getOutputPorts()) {
            arguments.add(context.getOutput(output).get());
        }
        for (OperatorDescription.Parameter param : desc.getParameters()) {
            arguments.add(Models.toLiteral(f, param.getValue()));
        }

        Expression impl = context.createImplementation();
        context.addEnd(new ExpressionBuilder(f, impl)
            .method(desc.getDeclaration().getName(), arguments)
            .toStatement());

        for (ListBufferMirror list : buffers) {
View Full Code Here

Examples of com.avaje.ebean.Expression

    EbeanServer server = Ebean.getServer(null);

    Query<Customer> someCustomerIds = server.find(Customer.class).select("id").where().lt("id", 5).query();

    Expression someCustIdsExpression = server.getExpressionFactory().in("id", someCustomerIds);

    Query<Customer> query = server.find(Customer.class).where().like("name", "Rob%").not(someCustIdsExpression).query();

    query.findList();
View Full Code Here

Examples of com.bacoder.parser.java.api.Expression

    ExpressionContext expressionContext = getChild(context, ExpressionContext.class);
    if (expressionContext == null) {
      return null;
    }

    Expression expression = getAdapter(ExpressionAdapter.class).adapt(expressionContext);

    Invocation invocation = null;
    if (expression instanceof ThisExpression) {
      invocation = createNode(context, ThisInvocation.class);
    } else if (expression instanceof SuperExpression) {
View Full Code Here

Examples of com.bpodgursky.jbool_expressions.Expression

    return input;
  }

  private boolean checkContains(NExpression expr, Expression toCheck){
    for(int i = 0; i < expr.expressions.length; i++){
      Expression child = expr.expressions[i];

      if(child.equals(toCheck)){
        return true;
      }
    }

    return false;
View Full Code Here

Examples of com.cburch.logisim.analyze.model.Expression

    return !data.getPoint().equals(instance.getLocation());
  }

  @Override
  protected Expression computeExpression(Expression[] inputs, int numInputs) {
    Expression ret = inputs[0];
    for (int i = 1; i < numInputs; i++) {
      ret = Expressions.or(ret, inputs[i]);
    }
    return Expressions.not(ret);
  }
View Full Code Here

Examples of com.damnhandy.uri.template.Expression

         {
            throw new MalformedUriTemplateException("Expression close brace was found at position " + position
                  + " yet there was no start brace.");
         }
         expressionCaptureOn = false;
         components.add(new Expression(buffer.toString(), startPosition));
         buffer = null;
      }
      else
      {
         throw new IllegalStateException("Cannot end an expression without beginning the template");
View Full Code Here
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.