org.sonar.duplications.index
Class ClonePart
java.lang.Object
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)
|
ClonePart
public ClonePart(String resourceId,
int startUnit,
int startLine,
int endLine)
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.