Package com.jalios.util.diff
Class HunkDel
java.lang.Object
com.jalios.util.diff.Hunk
com.jalios.util.diff.HunkDel
The
HunkDel class represents a bloc of difference that will
be deleted.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert()Returns a string representation of the current hunk with normal format .Returns a string representation of the current hunk with ED_script format .Returns a string representation of the current hunk with RCS_script format .getAfter()Returns string to delete.inthighLine(int filenum) Returns the number of high line of file passed in argument .intlowLine(int filenum) Returns the number of low line of file passed in argument .intnumLines(int filenum) Returns the number of lines consedered in this hunk and which came from file passed in argument .relNum(int filenum, int linenum) Returns a string representing the line in file and position passed in argument.
-
Constructor Details
-
HunkDel
public HunkDel()
-
-
Method Details
-
getOldContents
Returns string to delete. -
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 .- Specified by:
convert_EDin classHunk
-
convert_RCS
Returns a string representation of the current hunk with RCS_script format .- Specified by:
convert_RCSin classHunk
-
lowLine
public int lowLine(int filenum) Returns the number of low line of file passed in argument . Lines are inclusif. -
highLine
public int highLine(int filenum) Returns the number of high line of file passed in argument . Lines are inclusif. -
numLines
public int numLines(int filenum) Returns the number of lines consedered in this hunk and which came from file passed in argument . -
relNum
Returns a string representing the line in file and position passed in argument. -
getAfter
-
getBefore
-