| java.lang.Object JLibDiff.Hunk
All known Subclasses: JLibDiff.HunkDel, JLibDiff.HunkChange, JLibDiff.HunkAdd,
Hunk | abstract public class Hunk implements HunkVisitable(Code) | | The Hunk class is a super class of classes HunkAdd ,
HunkChange and HunkDel .it is an abstarct class.
|
Method Summary | |
abstract public void | accept(HunkVisitor visitor) | abstract public String | convert() Returns a string representation of the current hunk
with normal format . | abstract public String | convert_ED() Returns a string representation of the current hunk
with ED_script format . | abstract public String | convert_RCS() Returns a string representation of the current hunk
with RCS_script format . | abstract public int | highLine(int filenum) Returns the number of high line of file passed in argument . | abstract public int | lowLine(int filenum) Returns the number of low line of file passed in argument . | abstract public int | numLines(int filenum) Returns the number of lines consedered in this hunk and which
came from file passed in argument . | abstract public String | relNum(int filenum, int linenum) Returns a string representing the line in file and position
passed in argument. |
convert | abstract public String convert()(Code) | | Returns a string representation of the current hunk
with normal format .
|
convert_ED | abstract public String convert_ED()(Code) | | Returns a string representation of the current hunk
with ED_script format .
|
convert_RCS | abstract public String convert_RCS()(Code) | | Returns a string representation of the current hunk
with RCS_script format .
|
highLine | abstract public int highLine(int filenum)(Code) | | 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'). |
lowLine | abstract public int lowLine(int filenum)(Code) | | 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'). |
numLines | abstract public int numLines(int filenum)(Code) | | 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 | abstract public String relNum(int filenum, int linenum)(Code) | | 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'). Parameters: linenum - the number of line that will be returned. |
|
|