Class DiffXCCFactory

Return new instance of XCC diff factory class.

Constructor

class DiffXCCFactory([options])
Arguments:
  • options (Object) – Options which will be passed to the xcc algorithm upon instantiation.

Methods

createDiffAlgorithm

DiffXCCFactory#createDiffAlgorithm(doc1, doc2[, equals])
Arguments:
  • doc1 (Object) – The original document. Use loadOriginalDocument of the document factory to load a suitable document.
  • doc2 (Object) – The changed document. Use loadInputDocument of the document factory to load a suitable document.
  • equals (function) – The equality test-function used during diffing. Use the method createNodeEqualityTest of the document factory to create a suitable equality test function.
Returns xcc.Diff:
 

An initialized xcc.Diff instance.

Return new initialized instance of XCC diff algorithm.

createMatching

DiffXCCFactory#createMatching()
Returns tree.Matching:
 Empty matching object.

Return new tree matching object

Table Of Contents

Previous topic

Class DiffSkelmatchFactory

Next topic

Class ResolveXCCFactory