Interface IElementsTreeMatcher

    • Method Detail

      • getMatchedElement

        MatchedEmfObjects getMatchedElement​(org.eclipse.emf.ecore.EObject forElement)
        Returns matched compared element for the given input element.
        Parameters:
        forElement - the element from any of trees (main/other/ancestor) for which to get the compared element
        Returns:
        compared element found or null if the given input element is not matched
      • getMatchedChildren

        List<MatchedEmfObjects> getMatchedChildren​(org.eclipse.emf.ecore.EObject main,
                                                   org.eclipse.emf.ecore.EObject other,
                                                   org.eclipse.emf.ecore.EObject ancestor)
        Returns children (without sub-children) of the given elements in a result matched tree.
        Parameters:
        main - comparing element in main tree
        other - comparing element in other tree
        ancestor - comparing element in ancestor ancestor
        Returns:
        list of children in a matched tree, can be empty, never null