org.sonar.duplications.index
Class ClonePart

java.lang.Object
  extended by org.sonar.duplications.index.ClonePart
All Implemented Interfaces:
CodeFragment

public class ClonePart
extends Object
implements CodeFragment


Constructor Summary
ClonePart(String resourceId, int startUnit, int startLine, int endLine)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getEndLine()
          Number of line where fragment ends.
 int getLines()
           
 String getResourceId()
           
 int getStartLine()
          Number of line where fragment starts.
 int getUnitStart()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClonePart

public ClonePart(String resourceId,
                 int startUnit,
                 int startLine,
                 int endLine)
Method Detail

getResourceId

public String getResourceId()

getUnitStart

public int getUnitStart()

getStartLine

public int getStartLine()
Description copied from interface: CodeFragment
Number of line where fragment starts. Numbering starts from 1.

Specified by:
getStartLine in interface CodeFragment

getEndLine

public int getEndLine()
Description copied from interface: CodeFragment
Number of line where fragment ends. Numbering starts from 1.

Specified by:
getEndLine in interface CodeFragment

getLines

public int getLines()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.