Class UnparseAnalysis
java.lang.Object
org.variantsync.diffdetective.experiments.thesis_es.UnparseAnalysis
- All Implemented Interfaces:
Analysis.Hooks
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intprivate StringBuilderstatic final Stringprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleananalyzeVariationDiff(Analysis analysis) The main hook for analyzing non-empty diff trees.static booleanboolOr(boolean[] array) static int[]boolToInt(boolean[] array) voidstatic booleanequalsText(String text1, String text2, boolean whitespace, boolean diff) voidinitializeResults(Analysis analysis) Initialization hook forAnalysis.getResult().static VariationDiffParseOptionsoptionsSetter(int i) static StringparseUnparseDiff(String textDiff, VariationDiffParseOptions option) static StringparseUnparseTree(String text, VariationDiffParseOptions option) static StringremoveWhitespace(String string, boolean diff) private voidreportErrorToFile(Analysis analysis, String errorMessage) static boolean[]runDataTest(String textDiff, String treeBefore, String treeAfter) static boolean[][]runTestsDiff(String text) static boolean[]runTestsTree(String text) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.analysis.Analysis.Hooks
beginBatch, beginCommit, beginPatch, endCommit, endPatch, onFailedCommit, onFailedParse, onParsedCommit
-
Field Details
-
CSV_EXTENSION
- See Also:
-
count
public static int count -
csv
-
errorCount
private int errorCount
-
-
Constructor Details
-
UnparseAnalysis
public UnparseAnalysis()
-
-
Method Details
-
initializeResults
Description copied from interface:Analysis.HooksInitialization 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:
initializeResultsin interfaceAnalysis.Hooks
-
analyzeVariationDiff
Description copied from interface:Analysis.HooksThe main hook for analyzing non-empty diff trees. Called at most once during the patch phase.- Specified by:
analyzeVariationDiffin interfaceAnalysis.Hooks- Throws:
Exception
-
endBatch
- Specified by:
endBatchin interfaceAnalysis.Hooks- Throws:
IOException
-
reportErrorToFile
- Throws:
IOException
-
removeWhitespace
-
parseUnparseTree
-
parseUnparseDiff
-
optionsSetter
-
equalsText
-
runTestsDiff
-
runTestsTree
-
runDataTest
public static boolean[] runDataTest(String textDiff, String treeBefore, String treeAfter) throws IOException - Throws:
IOException
-
boolToInt
public static int[] boolToInt(boolean[] array) -
boolOr
public static boolean boolOr(boolean[] array)
-