Interface VariationDiffLabelFormat
- All Superinterfaces:
LinegraphFormat
- All Known Implementing Classes:
CommitDiffVariationDiffLabelFormat,IndexedTreeFormat,RWCompositePatternTreeFormat
Reads and writes
Source from and to line graph.- Author:
- Paul Bittner, Kevin Jedelhauser
-
Method Summary
Modifier and TypeMethodDescriptionConverts a label of line graph into aSource.default SourcefromLineGraphLine(String lineGraphLine) Converts a line describing a graph (starting with "t # ") in line graph format into aSource.Converts aSourcelabel of line graph.default StringtoLineGraphLine(Source variationDiffSource) Prepends thetree declarationto a label and return an entire line graph line.Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Method Details
-
fromLabel
Converts a label of line graph into aSource. -
toLabel
Converts aSourcelabel of line graph.- Parameters:
variationDiffSource- TheSourceto be converted- Returns:
- The corresponding line graph line
-
fromLineGraphLine
Converts a line describing a graph (starting with "t # ") in line graph format into aSource.- Parameters:
lineGraphLine- A line from a line graph file starting with "t #"- Returns:
- The
Sourcedescibed by the label of this line.
-
toLineGraphLine
Prepends thetree declarationto a label and return an entire line graph line.
-