Package org.openstreetmap.josm.tools
Class Diff.ForwardScript
- java.lang.Object
-
- org.openstreetmap.josm.tools.Diff.ForwardScript
-
- All Implemented Interfaces:
Diff.ScriptBuilder
- Enclosing class:
- Diff
static class Diff.ForwardScript extends java.lang.Object implements Diff.ScriptBuilder
-
-
Constructor Summary
Constructors Constructor Description ForwardScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Diff.Change
buildScript(boolean[] changed0, int len0, boolean[] changed1, int len1)
Scan the tables of which lines are inserted and deleted, producing an edit script in forward order.
-
-
-
Constructor Detail
-
ForwardScript
ForwardScript()
-
-
Method Detail
-
buildScript
public Diff.Change buildScript(boolean[] changed0, int len0, boolean[] changed1, int len1)
Scan the tables of which lines are inserted and deleted, producing an edit script in forward order.- Specified by:
buildScript
in interfaceDiff.ScriptBuilder
- Parameters:
changed0
- true for lines in first file which do not match 2ndlen0
- number of lines in first filechanged1
- true for lines in 2nd file which do not match 1stlen1
- number of lines in 2nd file- Returns:
- a linked list of changes - or null
-
-