|
|||||||||
| Home >> All >> [ JLibDiff overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JLibDiff
Class Hunk3

java.lang.ObjectJLibDiff.Hunk3
- public class Hunk3
- extends java.lang.Object
- Version:
- $VerNum: 2$
$KeyWordsOff: $
TheHunk3class represents a bloc of difference of three files or three Buffers.
| Field Summary | |
(package private) java.util.Vector |
a
|
(package private) java.util.Vector |
b
|
(package private) java.util.Vector |
c
|
(package private) DiffType |
diff
|
private java.util.ArrayList |
file0Lines
|
private java.util.ArrayList |
file1Lines
|
private java.util.ArrayList |
file2Lines
|
(package private) int[][] |
range
|
private Hunk3Type |
type
|
| Constructor Summary | |
Hunk3()
Allocates a new Hunk3. |
|
| Method Summary | |
void |
accpet(Hunk3Visitor visitor)
|
java.lang.String |
convert()
Returns a string representation of the current Hunk with normal format. |
java.util.ArrayList |
getFile0Lines()
Returns the file0Lines. |
java.util.ArrayList |
getFile1Lines()
Returns the file1Lines. |
java.util.ArrayList |
getFile2Lines()
Returns the file2Lines. |
int |
getMaxRange()
Returns the maximum range for this hunk3. |
Hunk3Type |
getType()
Returns the type. |
int |
highLine(int filenum)
Returns the value of position of bloc end line reliding the file passed in argument. |
int |
lowLine(int filenum)
Returns the value of position of bloc start line reliding the file passed in argument. |
int |
numLines(int filenum)
Returns the number of lines reliding this bloc of difference and the file passed in argument. |
void |
setFile0Lines(java.util.ArrayList file0Lines)
Sets the file0Lines. |
void |
setFile1Lines(java.util.ArrayList file1Lines)
Sets the file1Lines. |
void |
setFile2Lines(java.util.ArrayList file2Lines)
Sets the file2Lines. |
void |
setRange(int low0,
int high0,
int low1,
int high1,
int lowc,
int highc)
Set range of difference which consern this bloc in etch file by values passed in argument. |
void |
setType(Hunk3Type type)
Sets the type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
diff
DiffType diff
range
int[][] range
type
private Hunk3Type type
file0Lines
private java.util.ArrayList file0Lines
file1Lines
private java.util.ArrayList file1Lines
file2Lines
private java.util.ArrayList file2Lines
a
java.util.Vector a
b
java.util.Vector b
c
java.util.Vector c
| Constructor Detail |
Hunk3
public Hunk3()
- Allocates a new Hunk3.
| Method Detail |
setRange
public void setRange(int low0,
int high0,
int low1,
int high1,
int lowc,
int highc)
- Set range of difference which consern this bloc in etch file by values
passed in argument.
convert
public java.lang.String convert()
- Returns a string representation of the current Hunk with normal format.
lowLine
public int lowLine(int filenum)
- Returns the value of position of bloc start line reliding the
file passed in argument.
highLine
public int highLine(int filenum)
- Returns the value of position of bloc end line reliding the
file passed in argument.
numLines
public int numLines(int filenum)
- Returns the number of lines reliding this bloc of difference and the
file passed in argument.
accpet
public void accpet(Hunk3Visitor visitor)
getMaxRange
public int getMaxRange()
- Returns the maximum range for this hunk3. That is, the greatest
difference between high line and low line in a single file.
getFile0Lines
public java.util.ArrayList getFile0Lines()
- Returns the file0Lines.
getFile1Lines
public java.util.ArrayList getFile1Lines()
- Returns the file1Lines.
getFile2Lines
public java.util.ArrayList getFile2Lines()
- Returns the file2Lines.
setFile0Lines
public void setFile0Lines(java.util.ArrayList file0Lines)
- Sets the file0Lines.
setFile1Lines
public void setFile1Lines(java.util.ArrayList file1Lines)
- Sets the file1Lines.
setFile2Lines
public void setFile2Lines(java.util.ArrayList file2Lines)
- Sets the file2Lines.
getType
public Hunk3Type getType()
- Returns the type.
setType
public void setType(Hunk3Type type)
- Sets the type.
|
|||||||||
| Home >> All >> [ JLibDiff overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
JLibDiff.Hunk3