Package eu.admire.dispel.statements

Examples of eu.admire.dispel.statements.ExpressionStatement


        ci.setInitialValue(p.getLeft());
        p.getRight().setChild(literal);

        //Wrap the ci in a temporary expression statement so we can add it
        //to the package
        ExpressionStatement exp = wrapCI(ci);         
       
        return new Pair
            <ExpressionStatement, ConnectionInitialization>(exp, ci);
    }
View Full Code Here


     *
     * @param ci The ConnectionInitialization to wrap
     * @return An ExpressionStatement containing the CI.
     */
    public static ExpressionStatement wrapCI(ConnectionInitialization ci) {
      ExpressionStatement exp = StatementsFactory.eINSTANCE.
            createExpressionStatement();
        Pair <AssignmentExpression, SuffixUnaryModificationExpression> p2 =
            Utility.createAssToSuffUModExpressionChain();
        exp.setExpression(p2.getLeft());
        p2.getRight().setChild(ci);
       
        return exp;
    }
View Full Code Here

   * @param exp The expression to navigate
   * @return The child literal if found, null otherwise
   */
  public static ExpressionStatement getParentExpressionStatement(
      EObject base) {
    ExpressionStatement ret = null;
    if (base != null) {
      EObject e = base;
      do {
        e = e.eContainer();
        if (e instanceof ExpressionStatement) {
View Full Code Here

      //if old source is CI, need to add it back as a statement
      ConnectionInitialization old =
          mCreateConnFeature.getConnectionInitialization(
              context.getOldAnchor())
      if (old != null) {
        ExpressionStatement es = Utility.wrapCI(old);
        Utility.addAsLastNonSubmitStatement(es, pck.getStatements());
      }
     
      //Remove the old connection
      ConnectionStatement cs = (ConnectionStatement) bo;
View Full Code Here

TOP

Related Classes of eu.admire.dispel.statements.ExpressionStatement

Copyright © 2018 www.massapicom. 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.