| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--JLibDiff.Hunk3
Hunk3 class 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 | 
DiffType diff
int[][] range
private Hunk3Type type
private java.util.ArrayList file0Lines
private java.util.ArrayList file1Lines
private java.util.ArrayList file2Lines
java.util.Vector a
java.util.Vector b
java.util.Vector c
| Constructor Detail | 
public Hunk3()
| Method Detail | 
public void setRange(int low0,
                     int high0,
                     int low1,
                     int high1,
                     int lowc,
                     int highc)
low0 - start position of bloc of difference in the first file.high0 - end position of bloc ob difference in thefirst file.low1 - start position of bloc of difference in the second file.high1 - end position of bloc ob difference in the second file.lowc - start position of bloc of difference in the therd file.highc - end position of bloc ob difference in the therd file.public java.lang.String convert()
public int lowLine(int filenum)
filenum - file number which can be:
                    0 to indicate first file.
                    1 to indicate second file.
                    2 to indicate therd file.public int highLine(int filenum)
filenum - file number which can be:
                    0 to indicate first file.
                    1 to indicate second file.
                    2 to indicate therd file.public int numLines(int filenum)
filenum - file number which can be:
                    0 to indicate first file.
                    1 to indicate second file.
                    2 to indicate therd file.public void accpet(Hunk3Visitor visitor)
public int getMaxRange()
public java.util.ArrayList getFile0Lines()
public java.util.ArrayList getFile1Lines()
public java.util.ArrayList getFile2Lines()
public void setFile0Lines(java.util.ArrayList file0Lines)
file0Lines - The file0Lines to setpublic void setFile1Lines(java.util.ArrayList file1Lines)
file1Lines - The file1Lines to setpublic void setFile2Lines(java.util.ArrayList file2Lines)
file2Lines - The file2Lines to setpublic Hunk3Type getType()
public void setType(Hunk3Type type)
type - The type to set| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||