Package com.sonar.sslr.api
Class CommentAnalyser
java.lang.Object
com.sonar.sslr.api.CommentAnalyser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetContents(String comment) Extract the content of a comment, i.e. remove the comment tagsabstract booleanCheck whether or not a comment line is blank
-
Constructor Details
-
CommentAnalyser
public CommentAnalyser()
-
-
Method Details
-
isBlank
Check whether or not a comment line is blank- Parameters:
line- A line of the comment, excluding the comment tags- Returns:
- true if the line is considered blank and false otherwise
-
getContents
Extract the content of a comment, i.e. remove the comment tags- Parameters:
comment- Raw comment value- Returns:
- The content of the comment, without the tags
-