org.sonar.duplications
Interface CodeFragment

All Known Implementing Classes:
Block, ClonePart, Statement

@Beta
public interface CodeFragment

TODO Enforce contracts of this interface in concrete classes by using preconditions, currently this leads to failures of tests.

This interface is not intended to be implemented by clients.

Since:
2.14

Method Summary
 int getEndLine()
          Number of line where fragment ends.
 int getStartLine()
          Number of line where fragment starts.
 

Method Detail

getStartLine

int getStartLine()
Number of line where fragment starts. Numbering starts from 1.


getEndLine

int getEndLine()
Number of line where fragment ends. Numbering starts from 1.



Copyright © 2009-2012 SonarSource. All Rights Reserved.