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

JLibDiff
Class HunkDel

java.lang.Object
  |
  +--JLibDiff.Hunk
        |
        +--JLibDiff.HunkDel
All Implemented Interfaces:
HunkVisitable, java.io.Serializable

public class HunkDel
extends Hunk
implements java.io.Serializable

The HunkDel class represents a bloc of difference that will be deleted.

See Also:
Serialized Form

Constructor Summary
HunkDel()
           
 
Method Summary
 void accept(HunkVisitor visitor)
           
 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 getOldContents()
          Returns string to delete.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HunkDel

public HunkDel()
Method Detail

accept

public void accept(HunkVisitor visitor)
Overrides:
accept in class Hunk

getOldContents

public java.lang.String getOldContents()
Returns string to delete.

convert

public java.lang.String convert()
Returns a string representation of the current hunk with normal format .
Overrides:
convert in class Hunk

convert_ED

public java.lang.String convert_ED()
Returns a string representation of the current hunk with ED_script format .
Overrides:
convert_ED in class Hunk

convert_RCS

public java.lang.String convert_RCS()
Returns a string representation of the current hunk with RCS_script format .
Overrides:
convert_RCS in class Hunk

lowLine

public int lowLine(int filenum)
Returns the number of low line of file passed in argument . Lines are inclusif.
Overrides:
lowLine in class Hunk
Parameters:
filenum - The number of file (the first file '0', or the second '1').

highLine

public int highLine(int filenum)
Returns the number of high line of file passed in argument . Lines are inclusif.
Overrides:
highLine in class Hunk
Parameters:
filenum - The number of file (the first file '0', or the second '1').

numLines

public int numLines(int filenum)
Returns the number of lines consedered in this hunk and which came from file passed in argument .
Overrides:
numLines in class Hunk
Parameters:
filenum - The number of file (the first file '0', or the second '1').

relNum

public java.lang.String relNum(int filenum,
                               int linenum)
Returns a string representing the line in file and position passed in argument.
Overrides:
relNum in class Hunk
Parameters:
filenum - The number of file (the first file '0', or the second '1').
linenum - the number of line that will be returned.

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