org.sonar.ide.wsclient
Class SimpleSourceCodeDiffEngine

java.lang.Object
  extended by org.sonar.ide.wsclient.SimpleSourceCodeDiffEngine
All Implemented Interfaces:
SourceCodeDiffEngine

public class SimpleSourceCodeDiffEngine
extends Object
implements SourceCodeDiffEngine

Actually this is an implementation of heuristic algorithm - magic happens here.


Constructor Summary
SimpleSourceCodeDiffEngine()
           
 
Method Summary
 SourceCodeDiff diff(String[] local, String[] remote)
          
 SourceCodeDiff diff(String local, String remote)
           
static SourceCodeDiffEngine getInstance()
           
static String[] getLines(org.sonar.wsclient.services.Source source)
           
static String[] split(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSourceCodeDiffEngine

public SimpleSourceCodeDiffEngine()
Method Detail

getInstance

public static SourceCodeDiffEngine getInstance()

diff

public SourceCodeDiff diff(String local,
                           String remote)

diff

public SourceCodeDiff diff(String[] local,
                           String[] remote)

Specified by:
diff in interface SourceCodeDiffEngine

split

public static String[] split(String text)

getLines

public static String[] getLines(org.sonar.wsclient.services.Source source)


Copyright © 2010 Evgeny Mandrikov. All Rights Reserved.