Class VariationUnparser

java.lang.Object
org.variantsync.diffdetective.variation.VariationUnparser

public class VariationUnparser extends Object
  • Constructor Details

    • VariationUnparser

      public VariationUnparser()
  • Method Details

    • unparseTree

      public static <L extends Label> String unparseTree(VariationTree<L> tree)
      Unparse VariationTrees into a String.
      Type Parameters:
      L - the type of labels of the tree
      Parameters:
      tree - that is unparsed
      Returns:
      the unparsed variation tree
    • unparseDiff

      public static <L extends Label> String unparseDiff(VariationDiff<L> diff) throws IOException
      Unparse VariationDiffs into a String.
      Type Parameters:
      L - the type of labels of the tree
      Parameters:
      diff - that is unparsed
      Returns:
      the unparsed variation diff
      Throws:
      IOException
    • undiff

      public static String undiff(String diff, Time time)
      Extract the state of the diffed text before or after diff.
      Parameters:
      diff - the diff from which the state is extracted
      time - that the returned state represents
      Returns:
      the state before or after the diff