Examples of Expression


Examples of org.xvr.s3D.expression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetParExpr(expression newParExpr, NotificationChain msgs)
  {
    expression oldParExpr = parExpr;
    parExpr = newParExpr;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.SIMPLE_EXPRESSION_HEAD__PAR_EXPR, oldParExpr, newParExpr);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.zkoss.xel.Expression

        return expr;
      return Classes.coerce(expectedType, expr);
    }

    final Evaluator eval = getEvaluator(page, null);
    final Expression expression = eval.parseExpression(expr, expectedType);
    return self instanceof Page ?
      eval.evaluate((Page)self, expression):
      eval.evaluate((Component)self, expression);
  }
View Full Code Here

Examples of org.zkoss.zuss.metainfo.Expression

    }
  }

  private void parseKeyword(Context ctx, Keyword kw) throws IOException {
    final IfDefinition idef;
    final Expression expr;
    switch (kw.getValue()) {
    case INCLUDE:
      parseInclude(ctx, kw);
      return;
    case CHARSET:
    case IMPORT:
      new RawValue(ctx.block.owner, "@import "+_in.getUntil(";")+'\n', kw.getLine());
      return;
    case MEDIA:
      String scope = _in.getUntil("{");
      if (!scope.endsWith("{"))
        throw error("'{' expected", kw);
      scope = scope.substring(0, scope.length() - 1);
      newBlock(ctx,
        new MediaDefinition(ctx.block.owner, scope, kw.getLine()));
      return;
    case FONTFACE:
        new RawValue(ctx.block.owner, "@font-face "+_in.getUntil("}")+'\n', kw.getLine());
                    return;
    case IF:
      nextAndCheck(ctx, '(', false);
      expr = new Expression(_in.getLine());
      parseExpression(ctx, expr, '{');
      newBlock(ctx,
        new BlockDefinition(
          new IfDefinition(ctx.block.owner, kw.getLine()), expr, expr.getLine()));
      return;
    case ELSE:
      idef = getLastIf(ctx, kw);
      nextAndCheck(ctx, '{', false);
      newBlock(ctx, new BlockDefinition(idef, null, kw.getLine()));
      return;
    case ELIF:
      idef = getLastIf(ctx, kw);
      expr = new Expression(_in.getLine());
      parseExpression(ctx, expr, '{');
      newBlock(ctx, new BlockDefinition(idef, expr, kw.getLine()));
      return;
    }
    throw error(kw+" not supported yet", kw);
View Full Code Here

Examples of our.apache.commons.jxpath.ri.compiler.Expression

    }

    // javadoc inherited
    public Object function(int code, Object args) {
        JXPathExpressionList expList = (JXPathExpressionList) args;
        Expression expArray[] = null;
        if (expList != null) {
          expArray = expList.toArray();
        }
        return new JXPathCoreFunction(code, expArray,
                                           getExpressionFactory());
View Full Code Here

Examples of prefuse.data.expression.Expression

     */
    public boolean remove(Predicate p) {
        if ( p == null ) return false;
       
        IfExpression prev = null;
        Expression expr = m_head;
        while ( expr instanceof IfExpression ) {
            IfExpression ifex = (IfExpression)expr;
            Predicate test = (Predicate)ifex.getTestPredicate();
            if ( p.equals(test) ) {
                Expression elseex = ifex.getElseExpression();
                ifex.setElseExpression(new ObjectLiteral(null));
                if ( prev != null ) {
                    prev.setElseExpression(elseex);
                    if ( ifex == m_tail )
                        m_tail = prev;
View Full Code Here

Examples of ptolemy.actor.lib.Expression

                        + states[i]);

                integrators[i].output.link(stateRelations[i]);

                // One Expression per integrator.
                equations[i] = new Expression(this, states[i] + "_dot");
                equations[i].expression
                        .setExpression(((StringToken) ((Parameter) getAttribute(states[i]
                                + "_dot")).getToken()).stringValue());

                //FIXME: Why should I set type here?
                equations[i].output.setTypeEquals(BaseType.DOUBLE);
                connect(equations[i].output, integrators[i].input);
            }

            // Inputs
            String[] inputs = new String[m];
            IORelation[] inputRelations = new IORelation[m];
            Iterator inputPorts = inputPortList().iterator();
            int inputIndex = 0;

            while (inputPorts.hasNext()) {
                inputs[inputIndex] = ((NamedObj) inputPorts.next()).getName();
                inputRelations[inputIndex] = new TypedIORelation(this,
                        "relation_" + inputs[inputIndex]);
                getPort(inputs[inputIndex]).link(inputRelations[inputIndex]);
                inputIndex++;
            }

            // Outputs and output expressions.
            String[] outputs = new String[r];
            Expression[] maps = new Expression[r];
            int outIndex = 0;
            Iterator outputPorts = outputPortList().iterator();

            while (outputPorts.hasNext()) {
                outputs[outIndex] = ((NamedObj) outputPorts.next()).getName();
                maps[outIndex] = new Expression(this, "output_"
                        + outputs[outIndex]);

                maps[outIndex].expression
                        .setExpression(((StringToken) ((Parameter) getAttribute(outputs[outIndex]))
                                .getToken()).stringValue());
View Full Code Here

Examples of railo.runtime.sql.exp.Expression

      if(s.isDistinct()) sb.append("distinct\n\t");
      ValueNumber top = s.getTop();
      if(top!=null) sb.append("top "+top.getString()+"\n\t");
      // select
      Expression[] sels = s.getSelects();
      Expression exp;
      boolean first=true;
      for(int i=0;i<sels.length;i++) {
        if(!first)sb.append("\t,");
        exp=sels[i];
        sb.append(exp.toString(false)+"\n");
        first=false;
      }
 
      // from
      sb.append("from\n\t");
      Column[] forms = s.getFroms();
      first=true;
      for(int i=0;i<forms.length;i++) {
        if(!first)sb.append("\t,");
        exp=forms[i];
        sb.append(exp.toString(false)+"\n");
        first=false;
      }
 
      // where
      if(s.getWhere()!=null){
        sb.append("where \n\t");
        sb.append(s.getWhere().toString(true));
        sb.append("\n");
      }
 
      // group by
      Column[] gbs = s.getGroupbys();
      if(gbs.length>0) {
        sb.append("group by\n\t");
        first=true;
        for(int i=0;i<gbs.length;i++) {
          if(!first)sb.append("\t,");
          exp=gbs[i];
          sb.append(exp.toString(false)+"\n");
          first=false;
        }
      }
 
     
      // having
      Operation having = s.getHaving();
      if(having!=null){
        sb.append("having \n\t");
        sb.append(having.toString(true));
        sb.append("\n");
      }
     
    }

    // order by
    if(__selects.orderbys!=null && __selects.orderbys.size()>0) {
      sb.append("order by\n\t");
      Iterator<Column> it = __selects.orderbys.iterator();
      Expression exp;
      boolean first = true;
      while(it.hasNext()) {
        if(!first)sb.append("\t,");
        exp=it.next();
        sb.append(exp.toString(false)+" "+(exp.isDirectionBackward()?"DESC":"ASC")+"\n");
        first=false;
      }
    }
    return sb.toString();
  }
View Full Code Here

Examples of railo.transformer.bytecode.expression.Expression

      return null;
   
    Position line = data.cfml.getPosition();
   
    comments(data);
    Expression expr = super.expression(data);
    comments(data);
    // end )
    if(!data.cfml.forwardIfCurrent(')'))
      throw new TemplateException(data.cfml,"switch statement must end with a [)]");
    comments(data);
View Full Code Here

Examples of ru.aristar.jnuget.query.Expression

        if (filter == null || filter.isEmpty()) {
            return packageSource.getPackages();
        }
        try {
            QueryLexer queryLexer = new QueryLexer();
            Expression expression = queryLexer.parse(filter);
            if (expression.hasFilterPriority()) {
                return expression.filter(packageSource.getPackages());
            } else {
                return expression.execute(packageSource);
            }
        } catch (NugetFormatException e) {
            logger.warn("Ошибка разбора запроса пакетов", e);
            return packageSource.getPackages();
        }
View Full Code Here

Examples of ru.snake.spritepacker.writer.expression.Expression

      throw ParserException.create("parseExpressionBraces", current);
    }

    nextToken();

    Expression node;

    if (current.type == TokeType.END_EXPRESSION) {
      node = new ConstantExpression("");
    } else if (next != null && next.type == TokeType.END_EXPRESSION) {
      node = parseExpressionValue();
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.