org.sonar.duplications.statement
Class Statement

java.lang.Object
  extended by org.sonar.duplications.statement.Statement
All Implemented Interfaces:
CodeFragment

public class Statement
extends Object
implements CodeFragment


Constructor Summary
Statement(int startLine, int endLine, String value)
           
Statement(List<Token> tokens)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getEndLine()
          Number of line where fragment ends.
 int getStartLine()
          Number of line where fragment starts.
 String getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statement

public Statement(int startLine,
                 int endLine,
                 String value)

Statement

public Statement(List<Token> tokens)
Method Detail

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

getValue

public String getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.