|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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<T> |
DiffAlgorithm.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object. |
|
static
|
DiffUtils.diff(List<T> original,
List<T> revised)
Computes the difference between the original and revised list of elements with default diff algorithm |
|
static
|
DiffUtils.diff(List<T> original,
List<T> revised,
DiffAlgorithm<T> algorithm)
Computes the difference between the original and revised list of elements with default diff algorithm |
|
static
|
DiffUtils.diff(List<T> original,
List<T> revised,
Equalizer<T> equalizer)
Computes the difference between the original and revised list of elements with default diff algorithm |
|
Patch<T> |
DiffAlgorithm.diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object. |
|
static Patch<String> |
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<String> 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<String> patch,
int contextSize)
generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch. |
|
static
|
DiffUtils.patch(List<T> original,
Patch<T> patch)
Patch the original text with given patch |
|
static
|
DiffUtils.unpatch(List<T> revised,
Patch<T> patch)
Unpatch the revised text for a given patch |
Uses of Patch in difflib.myers |
---|
Methods in difflib.myers that return Patch | |
---|---|
Patch<T> |
MyersDiff.buildRevision(PathNode path,
List<T> orig,
List<T> rev)
Constructs a Patch from a difference path. |
Patch<T> |
MyersDiff.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object. |
Patch<T> |
MyersDiff.diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |