//****************************************************************** /// <summary> /// Compares the trees dominated by the CurrentParseTreeNode and the /// FindPatternRoot. If these trees match, true is returned and the /// MatchingNodes stack contains the list of matching node pairs. /// Otherwise, false is returned. /// </summary> private bool CurrentBranchMatchesPattern() { MatchAlgorithm oAlgorithm = new MatchAlgorithm(moTreeTransfer); return oAlgorithm.CurrentBranchMatchesPattern(); }
//****************************************************************** #region [CurrentBranchMatchesPattern() Method] //****************************************************************** /// <summary> /// Compares the trees dominated by the CurrentParseTreeNode and the /// FindPatternRoot. If these trees match, true is returned and the /// MatchingNodes stack contains the list of matching node pairs. /// Otherwise, false is returned. /// </summary> private bool CurrentBranchMatchesPattern() { MatchAlgorithm oAlgorithm = new MatchAlgorithm(moTreeTransfer); return(oAlgorithm.CurrentBranchMatchesPattern()); }