|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--JLibDiff.Hunk | +--JLibDiff.HunkAdd
The HunkAdd
class represents a bloc of difference reliding
addition(insertion).
Field Summary | |
(package private) java.util.Vector |
b
|
(package private) int |
ld1
|
(package private) int |
ld2
|
(package private) int |
lf2
|
Fields inherited from class JLibDiff.Hunk |
next |
Constructor Summary | |
HunkAdd()
|
Method Summary | |
void |
accept(HunkVisitor visitor)
|
java.lang.String |
convert_ED()
Returns a string representation of the current hunk with ED_script format . |
java.lang.String |
convert_RCS()
Returns a string representation of the current hunk with RCS_script format . |
java.lang.String |
convert()
Returns a string representation of the current hunk with normal format . |
java.lang.String |
getNewContents()
Returns string to append. |
int |
highLine(int filenum)
Returns the number of high line of file passed in argument . |
int |
lowLine(int filenum)
Returns the number of low line of file passed in argument . |
int |
numLines(int filenum)
Returns the number of lines consedered in this hunk and which came from file passed in argument . |
java.lang.String |
relNum(int filenum,
int linenum)
Returns a string representing the line in file and position passed in argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int ld1
int ld2
int lf2
java.util.Vector b
Constructor Detail |
public HunkAdd()
Method Detail |
public void accept(HunkVisitor visitor)
accept
in interface HunkVisitable
accept
in class Hunk
public java.lang.String getNewContents()
public java.lang.String convert()
convert
in class Hunk
public java.lang.String convert_ED()
convert_ED
in class Hunk
public java.lang.String convert_RCS()
convert_RCS
in class Hunk
public int lowLine(int filenum)
lowLine
in class Hunk
filenum
- The number of file (the first file '0', or the second '1').public int highLine(int filenum)
highLine
in class Hunk
filenum
- The number of file (the first file '0', or the second '1').public int numLines(int filenum)
numLines
in class Hunk
filenum
- The number of file (the first file '0', or the second '1').public java.lang.String relNum(int filenum, int linenum)
relNum
in class Hunk
filenum
- The number of file (the first file '0', or the second '1').linenum
- the number of line that will be returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |