Package ch.uzh.ifi.seal.changedistiller.treedifferencing.operation

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.UpdateOperation


                } else {
                    equals = v(w).equals(v(x));
                }
                if (!equals) {
                    // A. Append UPD(w, v(x)) to E
                    TreeEditOperation update = new UpdateOperation(w, x, v(x));
                    fEditScript.add(update);
                    // B. Apply UPD(w, v(x)) to T1
                    update.apply();
                }
                // iii. If (y, v) not in M'
                if (!matchContains(v, y, fMatchPrime)) {
                    // A. Let z be the partner of y in M'
                    // Node z /*T1*/= (Node) fRightToLeftMatchPrime.get(y); already executed
View Full Code Here


        Node methodInvocationRight = addToRight(METHOD_INVOCATION, "foo.beer();");
        createEditScript();
        assertThat(fEditScript.size(), is(1));
        TreeEditOperation operation = fEditScript.get(0);
        assertThat(operation.getOperationType(), is(OperationType.UPDATE));
        UpdateOperation update = (UpdateOperation) operation;
        assertThat(update.getNodeToUpdate(), is(methodInvocationLeft));
        assertThat(update.getNewNode(), is(methodInvocationRight));
        assertThat(update.getOldValue(), is("foo.bar();"));

    }
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.UpdateOperation

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.