Examples of Assignment


Examples of org.eclipse.php.internal.core.ast.nodes.Assignment

    for (int i = 0; i < names.length; i++) {
      linkedModel.getPositionGroup(KEY_NAME, true).addProposal(names[0], null, 10);
    }
    Variable variable = ast.newVariable(names[0]);
   
    Assignment assign = ast.newAssignment(variable, Assignment.OP_EQUAL, (Expression) astRewrite.createCopyTarget(expression));
    astRewrite.replace(expression, assign, editGroup);

    linkedModel.getPositionGroup(KEY_NAME, true).addPosition(astRewrite.track(variable.getName()), true);
    linkedModel.setEndPosition(astRewrite.track(statement));
   
View Full Code Here

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.Assignment

    super(goal);
  }

  public IGoal[] init() {
    ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
    Assignment expression = (Assignment) typedGoal.getExpression();
    return new IGoal[] { new ExpressionTypeGoal(typedGoal.getContext(),
        expression.getValue()) };
  }
View Full Code Here

Examples of org.eclipse.xtext.Assignment

        _setSpace.after(comma);
      }
    }
    FormattingConfig.NoLinewrapLocator _setNoLinewrap = c.setNoLinewrap();
    TargetPlatformGrammarAccess.LocationElements _locationAccess = this._targetPlatformGrammarAccess.getLocationAccess();
    Assignment _iDAssignment_1_0 = _locationAccess.getIDAssignment_1_0();
    _setNoLinewrap.around(_iDAssignment_1_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_1 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.LocationElements _locationAccess_1 = this._targetPlatformGrammarAccess.getLocationAccess();
    Assignment _uriAssignment_1_1 = _locationAccess_1.getUriAssignment_1_1();
    _setNoLinewrap_1.around(_uriAssignment_1_1);
    FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.IncludeDeclarationElements _includeDeclarationAccess = this._targetPlatformGrammarAccess.getIncludeDeclarationAccess();
    Keyword _includeKeyword_0 = _includeDeclarationAccess.getIncludeKeyword_0();
    _setLinewrap.before(_includeKeyword_0);
    FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1, 2, 2);
    TargetPlatformGrammarAccess.LocationElements _locationAccess_2 = this._targetPlatformGrammarAccess.getLocationAccess();
    Keyword _locationKeyword_0 = _locationAccess_2.getLocationKeyword_0();
    _setLinewrap_1.before(_locationKeyword_0);
    FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.LocationElements _locationAccess_3 = this._targetPlatformGrammarAccess.getLocationAccess();
    Keyword _withKeyword_2_1_0 = _locationAccess_3.getWithKeyword_2_1_0();
    _setLinewrap_2.before(_withKeyword_2_1_0);
    FormattingConfig.LinewrapLocator _setLinewrap_3 = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.TargetPlatformElements _targetPlatformAccess = this._targetPlatformGrammarAccess.getTargetPlatformAccess();
    Assignment _contentsAssignment_2 = _targetPlatformAccess.getContentsAssignment_2();
    _setLinewrap_3.after(_contentsAssignment_2);
    FormattingConfig.LinewrapLocator _setLinewrap_4 = c.setLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _iDAssignment_0 = _iUAccess.getIDAssignment_0();
    _setLinewrap_4.before(_iDAssignment_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_2 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess_1 = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _versionAssignment_1_1_0 = _iUAccess_1.getVersionAssignment_1_1_0();
    _setNoLinewrap_2.before(_versionAssignment_1_1_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_3 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess_2 = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _versionAssignment_1_1_1 = _iUAccess_2.getVersionAssignment_1_1_1();
    _setNoLinewrap_3.before(_versionAssignment_1_1_1);
    FormattingConfig.NoSpaceLocator _setNoSpace = c.setNoSpace();
    TargetPlatformGrammarAccess.IUElements _iUAccess_3 = this._targetPlatformGrammarAccess.getIUAccess();
    Keyword _semicolonKeyword_1_0_0 = _iUAccess_3.getSemicolonKeyword_1_0_0();
    _setNoSpace.around(_semicolonKeyword_1_0_0);
View Full Code Here

Examples of org.jasig.portal.portlets.permissionsadmin.Assignment

               
                IAuthorizationPrincipal p = groupListHelper.getPrincipalForEntity(bean);
               
                // first get the permissions explicitly set for this principal
                Assignment.Type type = getAssignmentType(p, owner, activity, target);
                flatAssignmentsList.add(new Assignment(principal, bean, type));

            } else {
                log.warn("Unable to resolve the following principal (will " +
                        "be omitted from the list of assignments):  " +
                        principal);
View Full Code Here

Examples of org.jbpm.workflow.core.node.Assignment

        List<Assignment> assignments = new LinkedList<Assignment>();
        while(subNode != null){
          org.w3c.dom.Node ssubNode = subNode.getFirstChild();
          String from = ssubNode.getTextContent();
          String to = ssubNode.getNextSibling().getTextContent();
          assignments.add(new Assignment("XPath", from, to));
            subNode = subNode.getNextSibling();
        }
        workItemNode.addInAssociation(new DataAssociation(
            source,
            dataInputs.get(target), assignments, null));
View Full Code Here

Examples of org.jreversepro.ast.expression.Assignment

      String fieldName = pool.getFieldName(fieldPtr);
      String fieldType = pool.getFieldType(fieldPtr);

      FieldAccessExpression expr = new InstanceFieldAccessExpression(accessTarget,
          fieldName, fieldType);
      Assignment assign = new Assignment(expr, rhs);
      statements.append(new CompleteLine(ins, assign));
      break;
    }
    }
View Full Code Here

Examples of org.mapstruct.ap.model.assignment.Assignment

            // find mapping method or conversion for key
            Type keySourceType = sourceTypeParams.get( 0 );
            Type keyTargetType = resultTypeParams.get( 0 );

            Assignment keyAssignment = ctx.getMappingResolver().getTargetAssignment(
                method,
                "map key",
                keySourceType,
                keyTargetType,
                null, // there is no targetPropertyName
                keyDateFormat,
                keyQualifiers,
                "entry.getKey()"
            );

            if ( keyAssignment == null ) {
                String message = String.format(
                    "Can't create implementation of method %s. Found no method nor "
                        + "built-in conversion for mapping source key type to target key type.", method
                );
                ctx.getMessager().printMessage( Diagnostic.Kind.ERROR, message, method.getExecutable() );
            }

            // find mapping method or conversion for value
            Type valueSourceType = sourceTypeParams.get( 1 );
            Type valueTargetType = resultTypeParams.get( 1 );

            Assignment valueAssignment = ctx.getMappingResolver().getTargetAssignment(
                method,
                "map value",
                valueSourceType,
                valueTargetType,
                null, // there is no targetPropertyName
View Full Code Here

Examples of org.mozilla.javascript.ast.Assignment

    return s;
  }

  @Override
  public AstNode assignment(AssignOperator operator, AstNode left, AstNode right) {
    Assignment a = new Assignment();
    a.setOperator(operator.getJavaScript());
    a.setLeft(left);
    a.setRight(right);
    return a;
  }
View Full Code Here

Examples of org.openengsb.domain.userprojects.model.Assignment

    }

    @Override
    public void deleteAssignment(String userName, String project) {

        Assignment queryObj = new Assignment();
        queryObj.setUser(userName);
        queryObj.setProject(project);
        List<Assignment> assignments = queryForAssignments(queryObj);

        if (assignments.isEmpty()) {
            LOGGER.warn("Assignment {1}:{2} does not exist.", userName, project);
        }
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaExpression.Assignment

    /* (non-Javadoc)
     * @see org.openquark.cal.internal.runtime.lecc.JavaModelVisitor#visitAssignmentExpression(org.openquark.cal.internal.runtime.lecc.JavaExpression.Assignment, java.lang.Object)
     */
    public JavaExpression visitAssignmentExpression(Assignment assignment, T arg) {
        return new Assignment (
                (Nameable)assignment.getLeftHandSide().accept(this, arg),
                (JavaExpression)assignment.getValue().accept(this, arg));
    }
View Full Code Here
TOP
Copyright © 2015 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.