Examples of Expression


Examples of com.draagon.meta.manager.exp.Expression

          results.add( o2 );
        }


        // Handle Expressions, Sorting, Ranging, and Options
        Expression exp = options.getExpression();
        SortOrder sort = options.getSortOrder();
        Range range = options.getRange();

        if ( exp != null )
            results = filterObjects( results, exp );
View Full Code Here

Examples of com.dragome.compiler.ast.Expression

  }

  public void visit(InfixExpression binOp)
  {
    InfixExpression.Operator op= binOp.getOperator();
    Expression left= binOp.getLeftOperand();
    Expression right= binOp.getRightOperand();

    boolean isTruncate= false;
    Type type= binOp.getTypeBinding();

    if (op == InfixExpression.Operator.DIVIDE && (type.equals(Type.LONG) || type.equals(Type.INT)))
View Full Code Here

Examples of com.exigen.ie.constrainer.Expression

  }

  public Expression getExpression(Class clazz, Object[] args, Class[] types)
  {
    ExpressionKey key = (_getFromCache || _putInCache ? new ExpressionKeyImpl(clazz, args) : null);
    Expression exp = (_getFromCache ? findExpression(key) : null);

    if(exp == null)
    {
      exp = createExpression(clazz, args, types);
//      System.out.println("Creating new expression: " + exp.name());
View Full Code Here

Examples of com.facebook.presto.sql.tree.Expression

    {
        List<Partition> partitions = splitManager.getPartitions(tableHandle, Optional.<Map<ColumnHandle, Object>>of(ImmutableMap.<ColumnHandle, Object>of(dsColumnHandle, "foo")));
        assertEquals(partitions.size(), 2);

        // ds=3. No partition will match this.
        Expression nonMatching = new ComparisonExpression(Type.EQUAL, new QualifiedNameReference(new QualifiedName("ds")), new StringLiteral("3"));
        DataSource dataSource = splitManager.getSplits(session, tableHandle, BooleanLiteral.TRUE_LITERAL, nonMatching, Predicates.<Partition>alwaysTrue(), symbols);
        List<Split> splits = ImmutableList.copyOf(dataSource.getSplits());
        // no splits found
        assertEquals(splits.size(), 0);
    }
View Full Code Here

Examples of com.founder.fix.bpmn2extensions.fixflow.Expression

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.SKIP_STRATEGY__EXPRESSION, oldExpression, newExpression);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of com.gentics.api.lib.expressionparser.Expression

  }

  @Test
  public void testExpressionParserHelperCorrectContentidStringExpression() throws ExpressionParserException,
      ParserException {
    Expression expression = ExpressionParserHelper.parse("object.contentid == \"10001.2\"");
    assertTrue("contentid (10001.2) doesn't match", ExpressionParserHelper.match(expression, resolvable));
  }
View Full Code Here

Examples of com.github.antlrjavaparser.api.expr.Expression

            if (fd.getVariables() == null || fd.getVariables().size() != 1) {
                throw new IllegalStateException(
                        "Illegal state: JavaParser did not return a field declaration correctly");
            }

            final Expression init = fd.getVariables().get(0).getInit();

            // Resolve imports (ROO-1505)
            if (init instanceof ObjectCreationExpr) {
                final ObjectCreationExpr ocr = (ObjectCreationExpr) init;
                final JavaType typeToImport = JavaParserUtils.getJavaTypeNow(
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.Expression

    }
  }

  private void addParameter(ReusableStructure declaration, ASTCssNode parameter) {
    if (parameter.getType()==ASTCssNodeType.ARGUMENT_DECLARATION) {
      Expression value = ((ArgumentDeclaration) parameter).getValue();
      if (AstLogic.isDetachedRuleset(value))
        problemsHandler.warnDetachedRulesetAsMixinParamDefault(value);
    }
    declaration.addParameter(parameter);
  }
View Full Code Here

Examples of com.google.caja.parser.js.Expression

      throws ParseException {
    JsLexer lexer = new JsLexer(cp);
    JsTokenQueue tq = new JsTokenQueue(
        lexer, sourceOf(cp), JsTokenQueue.NO_COMMENT);
    Parser p = new Parser(tq, mq, quasi);
    Expression e = p.parseExpression(true);
    tq.expectEmpty();
    return e;
  }
View Full Code Here

Examples of com.google.dart.engine.ast.Expression

   * @see HintCode#TYPE_CHECK_IS_NULL
   * @see HintCode#UNNECESSARY_TYPE_CHECK_TRUE
   * @see HintCode#UNNECESSARY_TYPE_CHECK_FALSE
   */
  private boolean checkAllTypeChecks(IsExpression node) {
    Expression expression = node.getExpression();
    TypeName typeName = node.getType();
    Type lhsType = expression.getStaticType();
    Type rhsType = typeName.getType();
    if (lhsType == null || rhsType == null) {
      return false;
    }
    String rhsNameStr = typeName.getName().getName();
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.