|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--upidiff.diff.Diff.FileData
Data on one input file being compared.
Field Summary | |
(package private) int |
buffered_lines
Number of elements (lines) in this file. |
(package private) boolean[] |
changed_flag
Array, indexed by real origin-1 line number, containing true for a line that is an insertion or a deletion. |
private int[] |
equivs
Vector, indexed by line number, containing an equivalence code for each line. |
(package private) int |
nondiscarded_lines
Total number of nondiscarded lines. |
(package private) int[] |
realindexes
Vector mapping virtual line numbers (not counting discarded lines) to real ones (counting those lines). |
(package private) int[] |
undiscarded
Vector, like the previous one except that the elements for discarded lines have been squeezed out. |
Constructor Summary | |
(package private) |
Diff.FileData(Object[] data,
Hashtable h)
|
Method Summary | |
(package private) void |
clear()
Allocate changed array for the results of comparison. |
(package private) void |
discard_confusing_lines(Diff.FileData f)
Discard lines that have no matches in another file. |
private void |
discard(byte[] discards)
Actually discard the lines. |
private byte[] |
discardable(int[] counts)
Mark to be discarded each line that matches no line of another file. |
(package private) int[] |
equivCount()
Return equiv_count[I] as the number of lines in this file that fall in equivalence class I. |
private void |
filterDiscards(byte[] discards)
Don't really discard the provisional lines except when they occur in a run of discardables, with nonprovisionals at the beginning and end. |
(package private) void |
shift_boundaries(Diff.FileData f)
Adjust inserts/deletes of blank lines to join changes as much as possible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final int buffered_lines
private final int[] equivs
final int[] undiscarded
final int[] realindexes
int nondiscarded_lines
boolean[] changed_flag
Constructor Detail |
Diff.FileData(Object[] data, Hashtable h)
Method Detail |
void clear()
int[] equivCount()
void discard_confusing_lines(Diff.FileData f)
When we discard a line, we also mark it as a deletion or insertion so that it will be printed in the output.
f
- the other fileprivate byte[] discardable(int[] counts)
counts
- The count of each equivalence number for the other file.
equivCount()
private void filterDiscards(byte[] discards)
private void discard(byte[] discards)
discards
- flags lines to be discardedvoid shift_boundaries(Diff.FileData f)
f
- the file being compared against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |