org.sonar.plugins.scala.language
Class Comment
java.lang.Object
org.sonar.plugins.scala.language.Comment
public class Comment
- extends Object
This class implements a Scala comment and the computation
of several base metrics for a comment.
- Since:
- 0.1
- Author:
- Felix Müller
Comment
public Comment(String content,
CommentType type)
throws IOException
- Throws:
IOException
getNumberOfLines
public int getNumberOfLines()
getNumberOfBlankLines
public int getNumberOfBlankLines()
getNumberOfCommentedOutLinesOfCode
public int getNumberOfCommentedOutLinesOfCode()
isDocComment
public boolean isDocComment()
isHeaderComment
public boolean isHeaderComment()
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 © 2002-2015 InfoEther. All Rights Reserved.