SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

JLibDiff
Class Hunk3

java.lang.Object
  |
  +--JLibDiff.Hunk3

public class Hunk3
extends java.lang.Object

The Hunk3 class represents a bloc of difference of three files or three Buffers.


Constructor Summary
Hunk3()
          Allocates a new Hunk3.
 
Method Summary
 java.lang.String convert()
          Returns a string representation of the current Hunk with normal format.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.
Parameters:
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.

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.
Parameters:
filenum - file number which can be: 0 to indicate first file. 1 to indicate second file. 2 to indicate therd file.

highLine

public int highLine(int filenum)
Returns the value of position of bloc end line reliding the file passed in argument.
Parameters:
filenum - file number which can be: 0 to indicate first file. 1 to indicate second file. 2 to indicate therd file.

numLines

public int numLines(int filenum)
Returns the number of lines reliding this bloc of difference and the file passed in argument.
Parameters:
filenum - file number which can be: 0 to indicate first file. 1 to indicate second file. 2 to indicate therd file.

SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan