| Constructor and Description |
|---|
Comments(com.google.common.collect.ListMultimap<Integer,Token> comments) |
Comments(com.google.common.collect.ListMultimap<Integer,Token> comments,
CommentAnalyser analyser) |
| Modifier and Type | Method and Description |
|---|---|
Token |
getCommentAtLine(int line)
Deprecated.
|
List<Token> |
getCommentTokensAtLine(int line) |
SortedSet<Integer> |
getLinesOfComment()
Get the sorted list of lines containing at least a comment
|
boolean |
hasCommentTokensAtLine(int line) |
boolean |
isBlank(String commentValue) |
boolean |
isBlankComment(int line)
Deprecated.
see
#isBlank(int) |
static boolean |
isBlankComment(String comment)
Deprecated.
see
isBlank(String) |
boolean |
isThereCommentAtLine(int commentLine)
Deprecated.
|
boolean |
isThereCommentBeforeLine(int line)
Deprecated.
since 1.13 use trivia instead
|
Iterator<Token> |
iterator()
Iterates over the collection of comment tokens
|
int |
size()
Return the number of comment tokens
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Comments(com.google.common.collect.ListMultimap<Integer,Token> comments, CommentAnalyser analyser)
public SortedSet<Integer> getLinesOfComment()
public int size()
public boolean hasCommentTokensAtLine(int line)
line - the line where we expect to find some comment tokenspublic List<Token> getCommentTokensAtLine(int line)
line - the line where we expect to find some comment tokenspublic boolean isBlank(String commentValue)
commentValue - the value of the comment@Deprecated public static boolean isBlankComment(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 © 2009–2018 SonarSource. All rights reserved.