org.openstreetmap.josm.tools
Class Diff.ReverseScript

java.lang.Object
  extended by org.openstreetmap.josm.tools.Diff.ReverseScript
All Implemented Interfaces:
Diff.ScriptBuilder
Enclosing class:
Diff

static class Diff.ReverseScript
extends java.lang.Object
implements Diff.ScriptBuilder

Scan the tables of which lines are inserted and deleted, producing an edit script in reverse order.


Constructor Summary
Diff.ReverseScript()
           
 
Method Summary
 Diff.change build_script(boolean[] changed0, int len0, boolean[] changed1, int len1)
          Scan the tables of which lines are inserted and deleted, producing an edit script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Diff.ReverseScript

Diff.ReverseScript()
Method Detail

build_script

public Diff.change build_script(boolean[] changed0,
                                int len0,
                                boolean[] changed1,
                                int len1)
Description copied from interface: Diff.ScriptBuilder
Scan the tables of which lines are inserted and deleted, producing an edit script.

Specified by:
build_script in interface Diff.ScriptBuilder
Parameters:
changed0 - true for lines in first file which do not match 2nd
len0 - number of lines in first file
changed1 - true for lines in 2nd file which do not match 1st
len1 - number of lines in 2nd file
Returns:
a linked list of changes - or null


JOSM