java.lang.Object
org.variantsync.studies.evolution.simulation.diff.DiffParser

public class DiffParser extends Object
DiffParser provides the functionality for parsing and converting the difference determined by UNIX diff into our internal representation.
  • Constructor Details

    • DiffParser

      public DiffParser()
  • Method Details

    • toOriginalDiff

      public static OriginalDiff toOriginalDiff(List<String> lines)
      Parse the given lines of text into a OriginalDiff object that represents the difference between two versions of a software project.
      Parameters:
      lines - The lines from UNIX diff's output that are to be parsed.
      Returns:
      An OriginalDiff instance representing the parsed difference