org.sonar.duplications.statement
Class Statement
java.lang.Object
org.sonar.duplications.statement.Statement
- All Implemented Interfaces:
- CodeFragment
public class Statement
- extends Object
- implements CodeFragment
Statement
public Statement(int startLine,
int endLine,
String value)
Statement
public Statement(List<Token> tokens)
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.