Main Page | Class Hierarchy | Class List | File List | Class Members

Hunk.cs

00001 namespace JLibDiff
00002 {
00003         using System;
00004         /*
00005         *  The <code>Hunk</code> class is a super class of classes <code>HunkAdd ,
00006         *   HunkChange</code> and <code>HunkDel</code> .it is an abstarct class.
00007         */
00008         [Serializable]
00009         public abstract class Hunk : HunkVisitable
00010         {
00011                 
00012                 internal Hunk next = null;
00013                 
00014                 public abstract void  accept(HunkVisitor visitor);
00015                 
00016                 /*
00017                 *  Returns a string representation of the current hunk
00018                 *  with normal format .
00019                 */
00020                 public abstract System.String convert();
00021                 
00022                 /*
00023                 *  Returns a string representation of the current hunk
00024                 *  with ED_script format .
00025                 */
00026                 public abstract System.String convert_ED();
00027                 
00028                 /*
00029                 *  Returns a string representation of the current hunk
00030                 *  with RCS_script format .
00031                 */
00032                 public abstract System.String convert_RCS();
00033                 
00034                 /*
00035                 *  Returns the number of low line of file passed in argument .
00036                 *  Lines are inclusif.
00037                 *
00038                 * @param filenum The number of file (the first file '0', or the second '1').
00039                 */
00040                 public abstract int lowLine(int filenum);
00041                 
00042                 /*
00043                 *  Returns the number of high line of file passed in argument .
00044                 *  Lines are inclusif.
00045                 *
00046                 * @param filenum The number of file (the first file '0', or the second '1').
00047                 */
00048                 public abstract int highLine(int filenum);
00049                 
00050                 /*
00051                 *  Returns the number of lines consedered in this hunk and which 
00052                 *  came from file passed in argument .
00053                 *
00054                 * @param filenum The number of file (the first file '0', or the second '1').
00055                 */
00056                 public abstract int numLines(int filenum);
00057                 
00058                 /*
00059                 *  Returns a string representing the line in  file and position
00060                 *  passed in argument.
00061                 *
00062                 * @param filenum The number of file (the first file '0', or the second '1').
00063                 * @param linenum the number of line that will be returned.
00064                 */
00065                 public abstract System.String relNum(int filenum, int linenum);
00066         }
00067 }

Generated on Mon May 8 22:07:27 2006 by  doxygen 1.3.9.1