public class HunkChange extends Hunk
HunkChange
class represents a bloc of difference reliding
change.Constructor and Description |
---|
HunkChange() |
Modifier and Type | Method and Description |
---|---|
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 |
getAfter() |
java.lang.String |
getBefore() |
java.lang.String |
getNewContents()
Returns update string.
|
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.
|
public java.lang.String getNewContents()
public java.lang.String convert()
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)
public int highLine(int filenum)
public int numLines(int filenum)
public java.lang.String relNum(int filenum, int linenum)
public java.lang.String getAfter()
getAfter
in class Hunk
Hunk.getAfter()
public java.lang.String getBefore()
getBefore
in class Hunk
Hunk.getBefore()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.