public interface CommentParser
| Modifier and Type | Method and Description |
|---|---|
CommentParser |
addSingleLineCommentSyntax(String commentPrefix)
This comment parser is able split a line using "commentPrefix".
|
static CommentParser |
create() |
void |
parseInto(Path path,
MultiFileVerifier verifier) |
void |
parseInto(Path path,
SingleFileVerifier verifier) |
static CommentParser create()
CommentParser addSingleLineCommentSyntax(String commentPrefix)
This comment parser is able split a line using "commentPrefix".
But there's some limitation, like for this case in java:
String name = "Paul//Smith"; // Noncompliant
Example:
parser.addSingleLineCommentSyntax("//");
void parseInto(Path path, MultiFileVerifier verifier)
path - source file to parseverifier - verifier for feedvoid parseInto(Path path, SingleFileVerifier verifier)
path - source file to parseverifier - verifier for feedCopyright © 2009–2018 SonarSource. All rights reserved.