|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectbmsi.util.DiffPrint.Base
public abstract static class DiffPrint.Base
A Base class for printing edit scripts produced by Diff.
This class divides the change list into "hunks", and calls
print_hunk for each hunk. Various utility methods
are provided as well.
| フィールドの概要 | |
|---|---|
protected int |
deletes
|
protected Object[] |
file0
Set to the lines of the files being compared. |
protected Object[] |
file1
Set to the lines of the files being compared. |
protected int |
first0
|
protected int |
first1
|
protected bmsi.util.UnaryPredicate |
ignore
Set to ignore certain kinds of lines when printing an edit script. |
protected int |
inserts
|
protected int |
last0
|
protected int |
last1
|
protected PrintWriter |
outfile
|
| コンストラクタの概要 | |
|---|---|
protected |
DiffPrint.Base(Object[] a,
Object[] b)
|
| メソッドの概要 | |
|---|---|
protected void |
analyze_hunk(Diff.change hunk)
Look at a hunk of edit script and report the range of lines in each file that it applies to. |
static char |
change_letter(int inserts,
int deletes)
|
protected Diff.change |
hunkfun(Diff.change hunk)
Called with the tail of the script and returns the last link that belongs together with the start of the tail. |
protected void |
print_1_line(String pre,
Object linbuf)
|
void |
print_header(String filea,
String fileb)
Called to print the script header which identifies the files compared. |
protected abstract void |
print_hunk(Diff.change hunk)
|
protected void |
print_number_range(char sepchar,
int a,
int b)
Print a pair of line numbers with SEPCHAR, translated for file FILE. |
void |
print_script(Diff.change script)
Divide SCRIPT into pieces by calling HUNKFUN and print each piece with PRINTFUN. |
void |
setOutput(Writer wtr)
|
protected void |
setupOutput()
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected PrintWriter outfile
protected bmsi.util.UnaryPredicate ignore
protected Object[] file0
protected Object[] file1
protected int first0
protected int last0
protected int first1
protected int last1
protected int deletes
protected int inserts
| コンストラクタの詳細 |
|---|
protected DiffPrint.Base(Object[] a,
Object[] b)
| メソッドの詳細 |
|---|
public void setOutput(Writer wtr)
protected void setupOutput()
public void print_script(Diff.change script)
protected Diff.change hunkfun(Diff.change hunk)
protected void analyze_hunk(Diff.change hunk)
public void print_header(String filea,
String fileb)
protected abstract void print_hunk(Diff.change hunk)
protected void print_1_line(String pre,
Object linbuf)
protected void print_number_range(char sepchar,
int a,
int b)
public static char change_letter(int inserts,
int deletes)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||