com.sonar.sslr.api
Class CommentAnalyser

java.lang.Object
  extended by com.sonar.sslr.api.CommentAnalyser

public abstract class CommentAnalyser
extends java.lang.Object


Constructor Summary
CommentAnalyser()
           
 
Method Summary
abstract  java.lang.String getContents(java.lang.String comment)
          Extract the content of a comment, i.e.
abstract  boolean isBlank(java.lang.String line)
          Check whether or not a comment line is blank
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentAnalyser

public CommentAnalyser()
Method Detail

isBlank

public abstract boolean isBlank(java.lang.String line)
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

public abstract java.lang.String getContents(java.lang.String comment)
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


Copyright © 2012 SonarSource. All Rights Reserved.