Examples of Expression


Examples of org.jinq.jpa.jpqlquery.Expression

      if (!query.isSelectFromWhere()) return false;
      SelectFromWhere<?> sfw = (SelectFromWhere<?>)query;
      if (sfw.where != null) return false;
      if (sfw.froms.size() != 1) return false;
      if (!sfw.cols.isSingleColumn()) return false;
      Expression expr = sfw.cols.getOnlyColumn();
      if (!(expr instanceof FromAliasExpression)) return false;
      if (((FromAliasExpression)expr).from != sfw.froms.get(0)) return false;
      return true;     
   }
View Full Code Here

Examples of org.jmanage.core.util.Expression

            // todo: it will be good to bring in a concept of ExpressionList
            // todo:    object which parses an expression into multiple
            // todo:    Expression objects - RK
            graphAttributes.append("[");
            Expression expr = new Expression(appConfig.getName(),
                    attrConfig.getMBean(),
                    attrConfig.getAttribute());
            graphAttributes.append(expr.toString());
            graphAttributes.append("]");
        }
        return graphAttributes.toString();
    }
View Full Code Here

Examples of org.jpox.query.expression.Expression

            return null;
        }
        Node node = parser.compile(having);
        ExpressionCompiler comp = new ExpressionCompiler();
        comp.setSymbolTable(symtbl);
        Expression expr = comp.compileExpression(node);
        // expr.bind();
        return expr;
    }
View Full Code Here

Examples of org.jquantlib.math.functions.Expression

        QL.require(n >= 1 , unsufficient_sample_size);

        final List<Ops.DoubleOp> functions = new ArrayList<Ops.DoubleOp>();
        functions.add(new Square());
        functions.add(new Bind2nd(new Minus(), mean()));
        final Expression comp = new Expression(functions);

        // Evaluate the composed function in the specified range (ie. everyWhere).
        final double s2 = expectationValue(comp, new TruePredicate()).getFirst();
        return s2*n/(n-1.0);
    }
View Full Code Here

Examples of org.jrdf.query.expression.Expression

    private void reorderExpressionList(List<Expression> constraintList) {
        sort(constraintList, comparator);
    }

    private void flattenExpression(BiOperandExpression expression, Collection<Expression> set, Class<?> expClass) {
        final Expression lhs = expression.getLhs();
        final Expression rhs = expression.getRhs();
        addExpressionToCollection(lhs, set, expClass);
        addExpressionToCollection(rhs, set, expClass);
    }
View Full Code Here

Examples of org.jresearch.flexess.models.expression.Expression

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSource(Expression newSource, NotificationChain msgs) {
    Expression oldSource = source;
    source = newSource;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.FEATURE_CALL__SOURCE, oldSource, newSource);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.jreversepro.ast.expression.Expression

  @Test
  public void testSerializedArgs() {
    MethodAccessExpression mex;
   
    Expression exp1 = new Constant(4);
    Expression exp2 = new Constant(6);
   
    List<Expression> args = new ArrayList<Expression>();
    args.add(exp1);
    args.add(exp2);
   
View Full Code Here

Examples of org.lealone.expression.Expression

            this.querySQL = query.getPlanSQL();
            tables = New.arrayList(query.getTables());
            ArrayList<Expression> expressions = query.getExpressions();
            ArrayList<Column> list = New.arrayList();
            for (int i = 0, count = query.getColumnCount(); i < count; i++) {
                Expression expr = expressions.get(i);
                String name = null;
                if (columnNames != null && columnNames.length > i) {
                    name = columnNames[i];
                }
                if (name == null) {
                    name = expr.getAlias();
                }
                int type = expr.getType();
                long precision = expr.getPrecision();
                int scale = expr.getScale();
                int displaySize = expr.getDisplaySize();
                Column col = new Column(name, type, precision, scale, displaySize);
                col.setTable(this, i);
                list.add(col);
            }
            cols = new Column[list.size()];
View Full Code Here

Examples of org.librebiz.pureport.definition.Expression

        }
        s = attrs.getValue("pass2");
        pass2 = s == null ? false : "true".equalsIgnoreCase(s);
        s = attrs.getValue("value");
        if (s != null && s.length() > 0) {
            container.add(new Expression(s, pass2));
        }
        new ContentTextHandler().start();
    }
View Full Code Here

Examples of org.neo4j.cypherdsl.expression.Expression

    @Override
    public void asString( StringBuilder builder )
    {
        for ( int i = 0; i < expressions.length; i++ )
        {
            Expression expression = expressions[i];
            if ( i > 0 )
            {
                builder.append( separator );
            }
            expression.asString( builder );
        }
    }
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.