Class EditClassValidation
java.lang.Object
org.variantsync.diffdetective.experiments.esecfse22.EditClassValidation
- All Implemented Interfaces:
Analysis.Hooks
This is the validation from our ESEC/FSE'22 paper.
It provides all configuration settings and facilities to setup the validation by
creating a
Analysis
and run it.- Author:
- Paul Bittner
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
analyzeVariationDiff
(Analysis analysis) The main hook for analyzing non-empty diff trees.private static EdgeLabelFormat<DiffLinesLabel>
EdgeFormat
(MiningNodeFormat nodeFormat) Returns the edge format that should be used for IO of edges in VariationDiffs.void
initializeResults
(Analysis analysis) Initialization hook forAnalysis.getResult()
.static void
Main method to start the validation.static MiningNodeFormat
Returns the node format that should be used for DiffNode IO.static LineGraphExportOptions<DiffLinesLabel>
ValidationExportOptions
(Repository repository) Creates new export options for running the validation on the given repository.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
beginBatch, beginCommit, beginPatch, endBatch, endCommit, endPatch, onFailedCommit, onFailedParse, onParsedCommit
-
Field Details
-
AnalysisFactory
-
-
Constructor Details
-
EditClassValidation
public EditClassValidation()
-
-
Method Details
-
NodeFormat
Returns the node format that should be used for DiffNode IO. -
EdgeFormat
Returns the edge format that should be used for IO of edges in VariationDiffs. -
ValidationExportOptions
Creates new export options for running the validation on the given repository. -
main
Main method to start the validation.- Parameters:
args
- Command-line options.- Throws:
IOException
- When copying the log file fails.
-
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
-
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
-