Uses of Class
difflib.Patch

Packages that use Patch
difflib The difflib package implements general operation with diff files. 
difflib.myers The diff.myers package implements Gene Myers' differencing algorithm. 
 

Uses of Patch in difflib
 

Methods in difflib that return Patch
 Patch DiffAlgorithm.diff(List<?> original, List<?> revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
static Patch DiffUtils.diff(List<?> original, List<?> revised)
          Compute the difference between the original and revised texts with default diff algorithm
static Patch DiffUtils.diff(List<?> original, List<?> revised, DiffAlgorithm algorithm)
          Compute the difference between the original and revised texts with given diff algorithm
 Patch DiffAlgorithm.diff(Object[] original, Object[] revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
static Patch DiffUtils.parseUnifiedDiff(List<String> diff)
          Parse the given text in unified format and creates the list of deltas for it.
 

Methods in difflib with parameters of type Patch
 List<DiffRow> DiffRowGenerator.generateDiffRows(List<String> original, List<String> revised, Patch patch)
          Generates the DiffRows describing the difference between original and revised texts using the given patch.
static List<String> DiffUtils.generateUnifiedDiff(String original, String revised, List<String> originalLines, Patch patch, int contextSize)
          generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch.
static List<?> DiffUtils.patch(List<?> original, Patch patch)
          Patch the original text with given patch
static List<?> DiffUtils.unpatch(List<?> revised, Patch patch)
          Unpatch the revised text for a given patch
 

Uses of Patch in difflib.myers
 

Methods in difflib.myers that return Patch
static Patch MyersDiff.buildRevision(PathNode path, Object[] orig, Object[] rev)
          Constructs a Patch from a difference path.
 Patch MyersDiff.diff(List<?> original, List<?> revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
 Patch MyersDiff.diff(Object[] orig, Object[] rev)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
 



Copyright © 2009-2011. All Rights Reserved.