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

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


     *            operation to create the source code
     * @return the move source code changes from the move operation
     */
    public Move createMoveOperation(StructureEntityVersion structureEntity, MoveOperation move) {
        if (isUsableForChangeExtraction(move.getNodeToMove())) {
            return new Move(structureEntity, move.getNodeToMove().getEntity(), move.getNewNode().getEntity(), move
                    .getOldParent().getEntity(), move.getNewParent().getEntity());
        }
        return null;
    }
View Full Code Here


                classifiedChanges.add(scc);
                it.remove();
            }
        }
        for (Iterator<Move> it = fMoves.iterator(); it.hasNext();) {
            Move mov = it.next();
            scc = classify(mov);
            if ((scc != null) && !classifiedChanges.contains(scc)) {
                classifiedChanges.add(scc);
                it.remove();
            }
View Full Code Here

    private SourceCodeChange extractParameterChange(Insert insert) {
        SourceCodeChange result = null;
        if (insert.getChangedEntity().getType() == JavaEntityType.PARAMETER) {
            // SingleVariableDeclaration has changed, but the type node (child)
            // remains the same => PARAMETER_RENAMING
            Move mov =
                    findMoveOperation(
                            insert.getRootEntity().getType(),
                            insert.getRootEntity().getUniqueName(),
                            JavaEntityType.PARAMETER,
                            null,
                            JavaEntityType.PARAMETER,
                            insert.getChangedEntity().getUniqueName(),
                            null,
                            null);

            Delete del =
                    findDeleteOperation(
                            insert.getRootEntity().getType(),
                            insert.getRootEntity().getUniqueName(),
                            JavaEntityType.PARAMETERS,
                            "",
                            JavaEntityType.PARAMETER,
                            insert.getChangedEntity().getUniqueName());
            // parameter renaming
            if (mov != null) {
                Delete d =
                        findDeleteOperation(
                                insert.getRootEntity().getType(),
                                insert.getRootEntity().getUniqueName(),
                                JavaEntityType.PARAMETERS,
                                "",
                                JavaEntityType.PARAMETER,
                                mov.getParentEntity().getUniqueName());
                if (d == null) {
                    insert.setChangeType(ChangeType.PARAMETER_INSERT);
                    result = insert;
                } else {
                    result =
View Full Code Here

TOP

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

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.