Examples of Expression


Examples of com.google.devtools.moe.client.parser.Expression

      return;
    }

    Codebase to, from;
    try {
      Expression toEx =
          new RepositoryExpression(toRev.repositoryName).atRevision(toRev.revId);
      Expression fromEx =
          new RepositoryExpression(fromRev.repositoryName).atRevision(fromRev.revId);

      // Use the forward-translator to check an inverse-translated migration.
      if (inverse) {
        String fromProjectSpace =
            context.config.getRepositoryConfigs().get(fromRev.repositoryName).getProjectSpace();
        toEx = toEx.translateTo(fromProjectSpace);
      } else {
        String toProjectSpace =
            context.config.getRepositoryConfigs().get(toRev.repositoryName).getProjectSpace();
        fromEx = fromEx.translateTo(toProjectSpace);
      }

      to = toEx.createCodebase(context);
      from = fromEx.createCodebase(context);

    } catch (CodebaseCreationError e) {
      AppContext.RUN.ui.error(e, "Could not generate codebase");
      return;
    } catch (InvalidProject e) {
View Full Code Here

Examples of com.google.gxp.compiler.base.Expression

                                           newBundle, null));
        }

        // Handle content parameter
        FormalParameter contentParam = callee.getContentConsumingParameter();
        Expression content = prepareExpressionAsParameterValue(contentParam,
                                                               apply(call.getContent()));
        boolean contentIgnorable = content.alwaysOnlyWhitespace();
        if (contentParam == null) {
          if (!contentIgnorable) {
            alertSink.add(new BadNodePlacementError(content, call));
          }
        } else {
View Full Code Here

Examples of com.google.minijoe.compiler.ast.Expression

    return new ContinueStatement(identifier);
  }

  private Statement parseDoStatement() throws CompilerException {
    Statement statement;
    Expression expression;

    readToken(Token.KEYWORD_DO);
    statement = parseStatement();
    readToken(Token.KEYWORD_WHILE);
    readToken(Token.OPERATOR_OPENPAREN);
View Full Code Here

Examples of com.google.test.metric.cpp.dom.Expression

  }

  @Override
  public void beginAssignmentExpression(int line) {
    int index = nodes.size() - 1;
    Expression leftSide = nodes.get(index);
    nodes.remove(index);
    AssignmentExpression assignment = new AssignmentExpression(line);
    nodes.add(assignment);
    assignment.addExpression(leftSide);
    pushBuilder(new AssignmentExpressionBuilder(assignment));
View Full Code Here

Examples of com.googlecode.aviator.Expression


    @Test
    public void testOnConstant_Nil() throws Exception {
        this.codeGenerator.onConstant(Variable.NIL);
        Expression exp = this.codeGenerator.getResult();
        Object result = exp.execute();
        assertNull(result);
    }
View Full Code Here

Examples of com.googlecode.openbeans.Expression

        // System.out.println("doRun(): arg [" + i + "] =
        // null");
        // }
        // }

        Expression expr = new Expression(target, methodName, getArgumentsValues());
        result = new Argument(expr.getValue());

        if (isPrimitiveClassName(getTagName()))
        {
          result.setType(getPrimitiveClass(tagName));
        }
View Full Code Here

Examples of com.graphbuilder.math.Expression

      return;
    }
    else if (_text.startsWith("=="))
    {
      String expression = _text.substring(2);
      Expression expr = null;
      if (!expression.isEmpty())
      {
        try
        {
          expr = ExpressionTree.parse(expression);
        }
        catch (ExpressionParseException ignored)
        {
        }
        if (expr != null)
        {
          double result;
          try
          {
            VarMap vm = new VarMap();
            vm.setValue("adena", activeChar.getAdena());
            result = expr.eval(vm, null);
            activeChar.sendMessage(expression);
            activeChar.sendMessage("=" + Util.formatDouble(result, "NaN", false));
          }
          catch (Exception ignored)
          {
View Full Code Here

Examples of com.hpctoday.fada.Expression

    for (String it : to_be_ducplicated) {
      StringBuilder positive = new StringBuilder();
      StringBuilder negative = new StringBuilder();
      positive.append("_pos_").append(it);
      negative.append("_neg_").append(it);
      Expression sub = new Expression(new Expression(positive.toString()), Expression.Operation.FADA_SUB, new Expression(
          negative.toString()));
      constraints.add(new Inequation(new Expression(it), Inequation.Predicate.FADA_EQ, sub));
      constraints.add(new Inequation(new Expression(positive.toString()), Inequation.Predicate.FADA_GREATER_EQ, new Expression(0)));
      constraints.add(new Inequation(new Expression(negative.toString()), Inequation.Predicate.FADA_GREATER_EQ, new Expression(0)));
      var.add(positive.toString());
      var.add(negative.toString());
    }
  }
View Full Code Here

Examples of com.icl.saxon.expr.Expression

   */
  public void process( Context context ) throws TransformerException {
    Outputter out = context.getOutputter();

    String hrefAtt = getAttribute("href");
    Expression hrefExpr = makeAttributeValueTemplate(hrefAtt);
    String href = hrefExpr.evaluateAsString(context);

    String encodingAtt = getAttribute("encoding");
    Expression encodingExpr = makeAttributeValueTemplate(encodingAtt);
    String encoding = encodingExpr.evaluateAsString(context);

    String baseURI = context.getContextNodeInfo().getBaseURI();

    URIResolver resolver = context.getController().getURIResolver();

View Full Code Here

Examples of com.icona.tree.nodes.Expression

    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:201:1: abstract_declarator returns [ArrayType arrayType] : ( ( '[' (c= constant_expression )? ']' )+ |);
    public final ArrayType abstract_declarator() throws RecognitionException {
        ArrayType arrayType = null;


        Expression c =null;



          arrayType =null;
          Expression dimension=null;

        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:208:3: ( ( '[' (c= constant_expression )? ']' )+ |)
            int alt27=2;
            int LA27_0 = input.LA(1);
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.