Package com.jalios.util.diff
Class Hunk
java.lang.Object
com.jalios.util.diff.Hunk
- Direct Known Subclasses:
HunkAdd,HunkChange,HunkDel
The
Hunk class is a super class of classes HunkAdd ,
HunkChange and HunkDel .it is an abstarct class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringconvert()Returns a string representation of the current hunk with normal format .abstract StringReturns a string representation of the current hunk with ED_script format .abstract StringReturns a string representation of the current hunk with RCS_script format .abstract StringgetAfter()abstract Stringabstract inthighLine(int filenum) Returns the number of high line of file passed in argument .abstract intlowLine(int filenum) Returns the number of low line of file passed in argument .abstract intnumLines(int filenum) Returns the number of lines consedered in this hunk and which came from file passed in argument .abstract StringrelNum(int filenum, int linenum) Returns a string representing the line in file and position passed in argument.
-
Constructor Details
-
Hunk
public Hunk()
-
-
Method Details
-
getBefore
-
getAfter
-
convert
Returns a string representation of the current hunk with normal format . -
convert_ED
Returns a string representation of the current hunk with ED_script format . -
convert_RCS
Returns a string representation of the current hunk with RCS_script format . -
lowLine
public abstract int lowLine(int filenum) Returns the number of low line of file passed in argument . Lines are inclusif.- Parameters:
filenum- The number of file (the first file '0', or the second '1').
-
highLine
public abstract int highLine(int filenum) Returns the number of high line of file passed in argument . Lines are inclusif.- Parameters:
filenum- The number of file (the first file '0', or the second '1').
-
numLines
public abstract int numLines(int filenum) Returns the number of lines consedered in this hunk and which came from file passed in argument .- Parameters:
filenum- The number of file (the first file '0', or the second '1').
-
relNum
Returns a string representing the line in file and position passed in argument.- Parameters:
filenum- The number of file (the first file '0', or the second '1').linenum- the number of line that will be returned.
-