Examples of Expression


Examples of jmathexpr.Expression

   
    @Test
    public void testPolynomials() {
        ExpressionParser parser = new ExpressionParser();
       
        Expression expression = parser.parse("let x in R");
       
        Logger.dump(expression);
    }
View Full Code Here

Examples of kiss.lang.Expression

    return s;
  }

  @Override
  public Expression substitute(IPersistentMap bindings) {
    Expression nBody=body.substitute(bindings);
    if (nBody==body) return this;
    if (nBody==null) return null;
    return create(type,nBody);
  }
View Full Code Here

Examples of kodkod.ast.Expression

  public final Decl visit(Decl decl) {
    Decl ret = lookup(decl);
    if (ret!=null) return ret;
    final int oldDepth = skolemDepth;
    skolemDepth = -1; // can't skolemize inside a decl
    final Expression expression = decl.expression().accept(this);
    skolemDepth = oldDepth;
    ret = (expression==decl.expression()) ? decl : decl.variable().declare(decl.multiplicity(), expression);  
    return cache(decl,ret);
  }
View Full Code Here

Examples of lombok.ast.Expression

                            if (expressions == null) {
                                continue;
                            }
                            Iterator<Expression> arrayIterator = expressions.iterator();
                            while (arrayIterator.hasNext()) {
                                Expression arrayElement = arrayIterator.next();
                                if (arrayElement instanceof StringLiteral) {
                                    String value = ((StringLiteral) arrayElement).astValue();
                                    if (value.equalsIgnoreCase(SUPPRESS_ALL) || (issue != null
                                            && issue.getId().equalsIgnoreCase(value))) {
                                        return true;
View Full Code Here

Examples of mil.nga.giat.geowave.analytics.mapreduce.kde.parser.Expression

      final Parameter parameter ) {
    Object value = parameters.get(parameter.getName());
    if (value != null) {
      if (value instanceof Expression) {
        // The parameter is itself another Expression
        final Expression newExpression = (Expression) parameters.get(parameter.getName());
        final Expression wrappedExpression = new Expression(
            newExpression.getExpression(),
            this);

        result = wrappedExpression.evaluate();
      }
      else {
        result = value;
      }
    }
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.Expression

            getRowType(),
            JavaRowFormat.CUSTOM);
    SparkRel.Implementor sparkImplementor =
        new SparkImplementorImpl(implementor);
    final SparkRel.Result result = child.implementSpark(sparkImplementor);
    final Expression rdd = list.append("rdd", result.block);
    final Expression enumerable =
        list.append(
            "enumerable",
            Expressions.call(
                SparkMethod.AS_ENUMERABLE.method,
                rdd));
View Full Code Here

Examples of net.mitza.odata.parser.Expression

    return result;
  }

  private Criteria buildFromFilter() {
    Parser criteriaParser = new Parser();
    Expression expression = criteriaParser.parse(filter);
    return expression.getCritera();
  }
View Full Code Here

Examples of net.sf.jsqlparser.expression.Expression

  }

  @Override
  public void visit(ExpressionList el) {
    for (final Iterator iter = el.getExpressions().iterator(); iter.hasNext();) {
      final Expression expression = (Expression) iter.next();
      expression.accept(this);
    }
  }
View Full Code Here

Examples of net.sf.jxls.parser.Expression

    final StopWatch clock = new StopWatch("Performance");
    clock.start("jexl2");
    for(int i=0;i<count;i++){
      Configuration conf = new Configuration();
      ExpressionParser exprParser = new ExpressionParser( test, beans, conf );
          Expression testExpr = exprParser.parse();
          try {
              result = (Boolean) testExpr.evaluate();
          } catch (Exception e) {
            e.printStackTrace();
          }
    }
    clock.stop();
View Full Code Here

Examples of net.sf.saxon.expr.Expression

  private PathMapRoot projectColumns(PathMapRoot parentRoot, List<XMLTable.XMLColumn> columns, PathMapNode finalNode, AnalysisRecord record) {
    for (XMLColumn xmlColumn : columns) {
      if (xmlColumn.isOrdinal()) {
        continue;
      }
        Expression internalExpression = xmlColumn.getPathExpression().getInternalExpression();
        PathMap subMap = new PathMap(internalExpression);
        PathMapRoot subContextRoot = null;
        for (PathMapRoot root : subMap.getPathMapRoots()) {
        if (root.getRootExpression() instanceof ContextItemExpression || root.getRootExpression() instanceof RootExpression) {
          if (subContextRoot != null) {
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.