bmsi.util
Class DiffPrint.ContextPrint
java.lang.Object
bmsi.util.DiffPrint.Base
bmsi.util.DiffPrint.ContextPrint
- Direct Known Subclasses:
- DiffPrint.UnifiedPrint
- Enclosing class:
- DiffPrint
public static class DiffPrint.ContextPrint
- extends DiffPrint.Base
Prints an edit script in context diff format. This and its
'unified' variation is used for source code patches.
|
Field Summary |
protected int |
context
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected int context
DiffPrint.ContextPrint
public DiffPrint.ContextPrint(Object[] a,
Object[] b)
print_context_label
protected void print_context_label(String mark,
File inf,
String label)
print_header
public void print_header(String filea,
String fileb)
- Description copied from class:
DiffPrint.Base
- Called to print the script header which identifies the files compared.
The default does nothing (except set output to system.out if
not otherwise set). Derived style classes can override to print
the files compared in the format for that style.
- Overrides:
print_header in class DiffPrint.Base
print_function
protected void print_function(Object[] file,
int start)
print_hunk
protected void print_hunk(Diff.change hunk)
- Specified by:
print_hunk in class DiffPrint.Base
Copyright © 2004-2011. All Rights Reserved.