public interface DifferenceAnalyzer extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
beginAnalysis(Element oldElement,
Element newElement)
Called when the analysis of the two corresponding elements begins.
|
Report |
endAnalysis(Element oldElement,
Element newElement)
Called when the analysis of the two elements ends (i.e.
|
boolean |
isDescendRequired(Element oldElement,
Element newElement)
Tells whether the analyzer needs to descend "into" the two provided elements.
|
void |
open()
Called right before the analysis starts.
|
close
void open()
AutoCloseable.close()
method is provided through the AutoCloseable
super interface.void beginAnalysis(@Nullable Element oldElement, @Nullable Element newElement)
endAnalysis(Element, Element)
method will be called for these
two elements.oldElement
- the element from the old archivesnewElement
- the element from the new archivesboolean isDescendRequired(@Nullable Element oldElement, @Nullable Element newElement)
beginAnalysis(Element, Element)
and before endAnalysis(Element, Element)
with the same pair of
elements.
Note that this decision is made on the "filtered" trees. I.e. if the filters filter out children of an element, the analyzer cannot override that decision and try to include such elements in the analysis again.
oldElement
- the element from the old archivesnewElement
- the element from the new archivesReport endAnalysis(@Nullable Element oldElement, @Nullable Element newElement)
oldElement
- the element from the old archivesnewElement
- the element from the new archivesCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.