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

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.LeafPair


                                            y.getValue());

                            // Important! Otherwhise nodes that match poorly will make it into final matching set,
                            // if no better matches are found!
                            if (similarity >= LEAF_COMMENT_STRING_SIMILARITY_THRESHOLD) {
                                matchedLeafs.add(new LeafPair(x, y, similarity));
                            }

                        } else { // ...other statements.
                            similarity =
                                    fLeafGenericStringSimilarityCalculator.calculateSimilarity(
                                            x.getValue(),
                                            y.getValue());

                            // Important! Otherwise nodes that match poorly will make it into final matching set,
                            // if no better matches are found!
                            if (similarity >= fLeafGenericStringSimilarityThreshold) {
                                matchedLeafs.add(new LeafPair(x, y, similarity));
                            }
                        }
                    }
                }
            }
View Full Code Here


        createMatchSet();
        assertLeavesAreMatched(methodInvocationLeft, methodInvocationRight);
    }

    private void assertLeavesAreMatched(Node left, Node right) {
        assertThat(fMatchSet, hasItem(new LeafPair(left, right)));
    }
View Full Code Here

    private void assertLeavesAreMatched(Node left, Node right) {
        assertThat(fMatchSet, hasItem(new LeafPair(left, right)));
    }

    private void assertLeavesAreNotMatched(Node left, Node right) {
        assertThat(fMatchSet, not(hasItem(new LeafPair(left, right))));
    }
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.treedifferencing.LeafPair

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.