public class HTMLDiffer extends Object implements Differ
TextNodeComparator instances, computes the difference
between them, marks the changes, and outputs a merged tree to a
HtmlSaxDiffOutput instance.| Constructor and Description |
|---|
HTMLDiffer(DiffOutput dm) |
| Modifier and Type | Method and Description |
|---|---|
void |
diff(TextNodeComparator leftComparator,
TextNodeComparator rightComparator)
Compares two Node Trees.
|
void |
diff(TextNodeComparator leftComparator,
TextNodeComparator rightComparator,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Compares two Node Trees.
|
void |
diff(TextNodeComparator leftComparator,
TextNodeComparator rightComparator,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean useGreedyMethod)
Compares two Node Trees.
|
void |
diff(TextNodeComparator ancestorComparator,
TextNodeComparator leftComparator,
TextNodeComparator rightComparator,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean useGreedyMethod) |
static double |
score(int... numbers) |
public HTMLDiffer(DiffOutput dm)
public void diff(TextNodeComparator ancestorComparator, TextNodeComparator leftComparator, TextNodeComparator rightComparator, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useGreedyMethod) throws SAXException
SAXExceptionpublic void diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator) throws SAXException
Differdiff in interface DifferleftComparator - Root of the first tree.rightComparator - Root of the second tree.SAXException - something went wrong with parsing of the trees.public void diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws SAXException
OldDifferencer as diff implementation.diff in interface DifferleftComparator - Root of the first tree.rightComparator - Root of the second tree.progressMonitor - This can be used to cancel the diffing externally.SAXException - something went wrong with parsing of the trees.public void diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator, org.eclipse.core.runtime.IProgressMonitor progressMonitor, boolean useGreedyMethod) throws SAXException
diff in interface DifferleftComparator - Root of the first tree.rightComparator - Root of the second tree.progressMonitor - This can be used to cancel the diffing externally.useGreedyMethod - whenever to use greedy method or notSAXException - something went wrong with parsing of the trees.public static double score(int... numbers)
Copyright © 2022. All rights reserved.