|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--upidiff.diff.Diff.Change
The result of comparison is an "edit script": a chain of change objects. Each change represents one place where some lines are deleted and some are inserted. LINE0 and LINE1 are the first affected lines in the two files (origin 0). DELETED is the number of lines deleted here from file 0. INSERTED is the number of lines inserted here in file 1. If DELETED is 0 then LINE0 is the number of the line before which the insertion was done; vice versa for INSERTED and LINE1.
Field Summary | |
int |
deleted
# lines of file 0 changed here. |
int |
inserted
# lines of file 1 changed here. |
int |
line0
Line number of 1st deleted line. |
int |
line1
Line number of 1st inserted line. |
Diff.Change |
link
Previous or next edit command. |
Constructor Summary | |
(package private) |
Diff.Change(int line0,
int line1,
int deleted,
int inserted,
Diff.Change old)
Cons an additional entry onto the front of an edit script OLD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Diff.Change link
public int inserted
public int deleted
public int line0
public int line1
Constructor Detail |
Diff.Change(int line0, int line1, int deleted, int inserted, Diff.Change old)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |