Examples of Assign


Examples of org.python.pydev.parser.jython.ast.Assign

            exprType[] expr = returnExpr.toArray(new exprType[0]);
            if (expr.length > 1) {
                expr = new exprType[] { new Tuple(expr, Tuple.Load, false) };
            }

            return new Assign(expr, methodCall);
        }
    }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Assign

        //initAttributes
        for (INodeAdapter adapter : attributes) {
            exprType target = new Attribute(new Name(NodeHelper.KEYWORD_SELF, Name.Load, false), new NameTok(
                    adapter.getName(), NameTok.Attrib), Attribute.Store);
            Assign initParam1 = new Assign(new exprType[] { target }, new Name(nodeHelper.getPublicAttr(adapter
                    .getName()), Name.Load, false));
            Assign initParam = initParam1;
            body.add(initParam);
        }

        //create function def
        return new FunctionDef(new NameTok(NodeHelper.KEYWORD_INIT, NameTok.FunctionName), args,
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Assign

            case JJTEXPR_STMT:
                value = (exprType) stack.popNode();
                if (arity > 1) {
                    exprs = makeExprs(arity - 1);
                    ctx.setStore(exprs);
                    return new Assign(exprs, value);
                } else {
                    return new Expr(value);
                }
            case JJTINDEX_OP:
                sliceType slice = (sliceType) stack.popNode();
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Assign

    @Override
    protected SimpleNode getEditNode() {
        exprType[] target = new exprType[] { new Name(propertyName, Name.Store, false) };
        Call property = createPropertyCall();

        return new Assign(target, property);
    }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Assign

                    for (Object[] objAndType : metaclassAttrs) {
                        //Note that the line/col is important so that we correctly acknowledge it inside the "class Model" scope.
                        Name name = new Name((String) objAndType[0], Name.Store, false);
                        name.beginColumn = classDef.beginColumn + 4;
                        name.beginLine = classDef.beginLine + 1;
                        newBody[i] = new Assign(new exprType[] { name }, (exprType) objAndType[1]);
                        newBody[i].beginColumn = classDef.beginColumn + 4;
                        newBody[i].beginLine = classDef.beginLine + 1;

                        i += 1;
                    }
View Full Code Here

Examples of org.springframework.expression.spel.ast.Assign

        if (expr==null) {
        expr = new NullLiteral(toPos(t.startpos-1,t.endpos-1));
      }
        nextToken();
        SpelNodeImpl assignedValue = eatLogicalOrExpression();
        return new Assign(toPos(t),expr,assignedValue);
      } else if (t.kind==TokenKind.ELVIS) { // a?:b (a if it isn't null, otherwise b)
        if (expr==null) {
          expr = new NullLiteral(toPos(t.startpos-1,t.endpos-2));
        }
        nextToken(); // elvis has left the building
View Full Code Here

Examples of org.springframework.expression.spel.ast.Assign

    if (moreTokens()) {
      Token t = peekToken();
      if (t.kind==TokenKind.ASSIGN) { // a=b
        nextToken();
        SpelNodeImpl assignedValue = eatLogicalOrExpression();
        return new Assign(toPos(t),expr,assignedValue);
      } else if (t.kind==TokenKind.ELVIS) { // a?:b (a if it isn't null, otherwise b)
        nextToken(); // elvis has left the building
        SpelNodeImpl valueIfNull = eatExpression();
        return new Elvis(toPos(t),expr,valueIfNull);
      } else if (t.kind==TokenKind.QMARK) { // a?b:c
View Full Code Here

Examples of org.springframework.expression.spel.ast.Assign

        if (expr==null) {
        expr = new NullLiteral(toPos(t.startpos-1,t.endpos-1));
      }
        nextToken();
        SpelNodeImpl assignedValue = eatLogicalOrExpression();
        return new Assign(toPos(t),expr,assignedValue);
      } else if (t.kind==TokenKind.ELVIS) { // a?:b (a if it isn't null, otherwise b)
        if (expr==null) {
          expr = new NullLiteral(toPos(t.startpos-1,t.endpos-2));
        }
        nextToken(); // elvis has left the building
View Full Code Here

Examples of org.springframework.expression.spel.ast.Assign

        if (expr == null) {
          expr = new NullLiteral(toPos(t.startPos - 1, t.endPos - 1));
        }
        nextToken();
        SpelNodeImpl assignedValue = eatLogicalOrExpression();
        return new Assign(toPos(t), expr, assignedValue);
      }

      if (t.kind == TokenKind.ELVIS) {  // a?:b (a if it isn't null, otherwise b)
        if (expr == null) {
          expr = new NullLiteral(toPos(t.startPos - 1, t.endPos - 2));
View Full Code Here

Examples of org.woped.editor.controller.bpel.Assign

                if (transitions[i].getToolspecificArray(j)
                    .isSetAssign()) {
                  TAssign assign = transitions[i]
                      .getToolspecificArray(j)
                      .getAssign();
                  Assign bpel = new Assign(assign.getName(),
                      assign.getCopyArray(0).getFrom()
                          .getVariable(), assign
                          .getCopyArray(0).getTo()
                          .getVariable());
                  map.setBpeldata(bpel);
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.