Class LineGraphExportAnalysis
java.lang.Object
org.variantsync.diffdetective.analysis.LineGraphExportAnalysis
- All Implemented Interfaces:
Analysis.Hooks
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AnalysisStrategy
private final LineGraphExportOptions<? super DiffLinesLabel>
private OutputStream
static final AnalysisResult.ResultKey<LineGraphExportAnalysis.Result>
-
Constructor Summary
ConstructorDescriptionLineGraphExportAnalysis
(AnalysisStrategy analysisStrategy, LineGraphExportOptions<? super DiffLinesLabel> exportOptions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
analyzeVariationDiff
(Analysis analysis) The main hook for analyzing non-empty diff trees.void
beginBatch
(Analysis analysis) void
void
void
initializeResults
(Analysis analysis) Initialization hook forAnalysis.getResult()
.boolean
onParsedCommit
(Analysis analysis) Signals the completion of the commit diff extraction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.analysis.Analysis.Hooks
beginCommit, beginPatch, endPatch, onFailedCommit, onFailedParse
-
Field Details
-
RESULT
-
analysisStrategy
-
exportOptions
-
lineGraphDestination
-
-
Constructor Details
-
LineGraphExportAnalysis
public LineGraphExportAnalysis(AnalysisStrategy analysisStrategy, LineGraphExportOptions<? super DiffLinesLabel> exportOptions)
-
-
Method Details
-
initializeResults
Description copied from interface:Analysis.Hooks
Initialization hook forAnalysis.getResult()
. All result types should be appended with a neutral value usingAnalysis.append(org.variantsync.diffdetective.analysis.AnalysisResult.ResultKey<T>, T)
. No other side effects should be performed during this methods as it might be called an arbitrary amount of times.- Specified by:
initializeResults
in interfaceAnalysis.Hooks
-
beginBatch
- Specified by:
beginBatch
in interfaceAnalysis.Hooks
-
onParsedCommit
Description copied from interface:Analysis.Hooks
Signals the completion of the commit diff extraction. Called exactly once during the commit phase before the patch phase begins.- Specified by:
onParsedCommit
in interfaceAnalysis.Hooks
-
analyzeVariationDiff
Description copied from interface:Analysis.Hooks
The main hook for analyzing non-empty diff trees. Called at most once during the patch phase.- Specified by:
analyzeVariationDiff
in interfaceAnalysis.Hooks
- Throws:
Exception
-
endCommit
- Specified by:
endCommit
in interfaceAnalysis.Hooks
- Throws:
Exception
-
endBatch
- Specified by:
endBatch
in interfaceAnalysis.Hooks
-