Constructor and Description |
---|
Comments( |
Comments( |
Modifier and Type | Method and Description |
---|---|
Token |
getCommentAtLine(int line)
Deprecated.
|
java.util.List<Token> |
getCommentTokensAtLine(int line) |
java.util.SortedSet<java.lang.Integer> |
getLinesOfComment()
Get the sorted list of lines containing at least a comment
|
boolean |
hasCommentTokensAtLine(int line) |
boolean |
isBlank(java.lang.String commentValue) |
boolean |
isBlankComment(int line)
Deprecated.
see
#isBlank(int) |
static boolean |
isBlankComment(java.lang.String comment)
Deprecated.
see
isBlank(String) |
boolean |
isThereCommentAtLine(int commentLine)
Deprecated.
|
boolean |
isThereCommentBeforeLine(int line) |
java.util.Iterator<Token> |
iterator()
Iterates over the collection of comment tokens
|
int |
size()
Return the number of comment tokens
|
public Comments(comments)
public Comments(comments, CommentAnalyser analyser)
public java.util.Iterator<Token> iterator()
iterator
in interface java.lang.Iterable<Token>
public java.util.SortedSet<java.lang.Integer> getLinesOfComment()
public int size()
public boolean hasCommentTokensAtLine(int line)
line
- the line where we expect to find some comment tokenspublic java.util.List<Token> getCommentTokensAtLine(int line)
line
- the line where we expect to find some comment tokenspublic boolean isBlank(java.lang.String commentValue)
commentValue
- the value of the comment@Deprecated public static boolean isBlankComment(java.lang.String comment)
isBlank(String)
@Deprecated public boolean isBlankComment(int line)
#isBlank(int)
@Deprecated public Token getCommentAtLine(int line)
getCommentTokensAtLine(int)
public boolean isThereCommentBeforeLine(int line)
line
- the line above which some non-blank comment tokens are expected to be found@Deprecated public boolean isThereCommentAtLine(int commentLine)
hasCommentTokensAtLine(int)
Copyright © 2012 SonarSource. All Rights Reserved.