Class DiffLinesLabel
java.lang.Object
org.variantsync.diffdetective.variation.DiffLinesLabel
- All Implemented Interfaces:
Label
A label consisting of lines with
line number
information for each line.
Using this label, a VariationDiff
encodes all information (except the original line
ending encoding, i.e. LF
vs CRLF
) necessary to reconstruct the original files
and, when used during construction, the line diff between these files.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDiffLine
(DiffLinesLabel.Line newLine) void
addDiffLines
(List<DiffLinesLabel.Line> newLines) clone()
getLines()
static DiffLinesLabel
ofCodeBlock
(String codeBlock) toString()
static DiffLinesLabel
withInvalidLineNumbers
(List<String> lines)
-
Field Details
-
lines
-
-
Constructor Details
-
DiffLinesLabel
public DiffLinesLabel() -
DiffLinesLabel
-
-
Method Details