Package ch.uzh.ifi.seal.changedistiller.model.entities

Examples of ch.uzh.ifi.seal.changedistiller.model.entities.Update


                        check = false;
                    }
                }
                if (!check) {
                    result =
                            new Update(
                                    insert.getRootEntity(),
                                    del.getChangedEntity(),
                                    insert.getChangedEntity(),
                                    insert.getParentEntity());
                    result.setChangeType(ChangeType.RETURN_TYPE_CHANGE);
View Full Code Here


                if (d == null) {
                    insert.setChangeType(ChangeType.PARAMETER_INSERT);
                    result = insert;
                } else {
                    result =
                            new Update(
                                    insert.getRootEntity(),
                                    insert.getChangedEntity(),
                                    d.getChangedEntity(),
                                    insert.getParentEntity());
                    result.setChangeType(ChangeType.PARAMETER_RENAMING);
                    fMoves.remove(mov);
                    fDeletes.remove(d);
                }

                // SingleVariableDeclaration remains the same but the type
                // node (child) are not equal => PARAMETER_TYPE_CHANGE
            } else if (del != null) {
                Delete dell =
                        findDeleteOperation(
                                insert.getRootEntity().getType(),
                                insert.getRootEntity().getUniqueName(),
                                del.getChangedEntity().getType(),
                                del.getChangedEntity().getUniqueName(),
                                null,
                                null);
                if (dell == null) {
                    insert.setChangeType(ChangeType.PARAMETER_INSERT);
                    result = insert;
                } else {

                    // WTF how to remove the insert?

                    Insert i =
                            findInsertOperation(insert.getRootEntity().getType(), insert.getRootEntity()
                                    .getUniqueName(), insert.getChangedEntity().getType(), insert.getChangedEntity()
                                    .getUniqueName(), null, null);
                    if (i == null) {
                        insert.setChangeType(ChangeType.PARAMETER_INSERT);
                        result = insert;
                    } else {
                        result =
                                new Update(
                                        insert.getRootEntity(),
                                        dell.getChangedEntity(),
                                        i.getChangedEntity(),
                                        insert.getChangedEntity());
                        result.setChangeType(ChangeType.PARAMETER_TYPE_CHANGE);
View Full Code Here

                        "",
                        JavaEntityType.MODIFIER,
                        PRIVATE);
        if (delProtected != null) {
            result =
                    new Update(
                            insert.getRootEntity(),
                            delProtected.getChangedEntity(),
                            insert.getChangedEntity(),
                            insert.getParentEntity());
            result.setChangeType(ChangeType.INCREASING_ACCESSIBILITY_CHANGE);
            fDeletes.remove(delProtected);
        } else if (delPrivate != null) {
            result =
                    new Update(
                            insert.getRootEntity(),
                            delPrivate.getChangedEntity(),
                            insert.getChangedEntity(),
                            insert.getParentEntity());
            result.setChangeType(ChangeType.INCREASING_ACCESSIBILITY_CHANGE);
View Full Code Here

                        "",
                        JavaEntityType.MODIFIER,
                        PUBLIC);
        if (delProtected != null) {
            result =
                    new Update(
                            insert.getRootEntity(),
                            delProtected.getChangedEntity(),
                            insert.getChangedEntity(),
                            insert.getParentEntity());
            result.setChangeType(ChangeType.DECREASING_ACCESSIBILITY_CHANGE);
            fDeletes.remove(delProtected);
        } else if (delPublic != null) {
            result =
                    new Update(
                            insert.getRootEntity(),
                            delPublic.getChangedEntity(),
                            insert.getChangedEntity(),
                            insert.getParentEntity());
            fDeletes.remove(delPublic);
View Full Code Here

                        "",
                        JavaEntityType.MODIFIER,
                        PRIVATE);
        if (insProtected != null) {
            result =
                    new Update(
                            delete.getRootEntity(),
                            delete.getChangedEntity(),
                            insProtected.getChangedEntity(),
                            insProtected.getParentEntity());
            fInserts.remove(insProtected);
        } else if (insPrivate != null) {
            result =
                    new Update(
                            delete.getRootEntity(),
                            delete.getChangedEntity(),
                            insPrivate.getChangedEntity(),
                            insPrivate.getParentEntity());
            fInserts.remove(insPrivate);
View Full Code Here

                "",
                JavaEntityType.MODIFIER,
                PUBLIC);
        if (insProtected != null) {
            result =
                    new Update(
                            delete.getRootEntity(),
                            delete.getChangedEntity(),
                            insProtected.getChangedEntity(),
                            insProtected.getParentEntity());
            result.setChangeType(ChangeType.INCREASING_ACCESSIBILITY_CHANGE);
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.model.entities.Update

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.