Class: SimilarityMatcher

SimilarityMatcher(endpointEquality)

A matching module that matches similar leaf nodes. The comparison logic resides in the passed comparator.

Constructor

new SimilarityMatcher(endpointEquality)

Construct a new SimilarityMatcher instance.
Parameters:
Name Type Description
endpointEquality Boolean Whether the endpoints of call nodes should be forced to equal each other.
Implements:
Source:

Classes

SimilarityMatcher

Methods

match(oldTree, newTree, matching, comparator)

Extend the matching with matches between sufficiently similar leaf nodes. For each unmatched new leaf node, the old node with the lowest comparison value that is better than that node's current best match is chosen.
Parameters:
Name Type Description
oldTree Node The root of the old (original) process tree
newTree Node The root of the new (changed) process tree
matching Matching The existing matching to be extended
comparator Comparator The comparator used for comparisons.
Implements:
Source: