org.sonar.ide.api
Class SourceCodeDiff

java.lang.Object
  extended by org.sonar.ide.api.SourceCodeDiff

public final class SourceCodeDiff
extends Object

Since:
0.2

Field Summary
static int NOT_FOUND
           
 
Constructor Summary
SourceCodeDiff()
           
 
Method Summary
 void map(int oldLine, int newLine)
           
 Integer newLine(int oldLine)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_FOUND

public static final int NOT_FOUND
See Also:
Constant Field Values
Constructor Detail

SourceCodeDiff

public SourceCodeDiff()
Method Detail

map

public void map(int oldLine,
                int newLine)
Parameters:
oldLine - line in Sonar server (starting from 1)
newLine - line in working copy (starting from 0), -1 if not found

newLine

public Integer newLine(int oldLine)
Parameters:
oldLine - line in Sonar server (starting from 1)
Returns:
line in working copy (starting from 0), -1 if not found

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Evgeny Mandrikov. All Rights Reserved.