public class InternalCommentParser extends Object implements CommentParser
| Constructor and Description |
|---|
InternalCommentParser() |
| Modifier and Type | Method and Description |
|---|---|
InternalCommentParser |
addSingleLineCommentSyntax(String commentPrefix)
This comment parser is able split a line using "commentPrefix".
|
void |
parseInto(Path path,
MultiFileVerifier verifier) |
void |
parseInto(Path path,
SingleFileVerifier verifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic InternalCommentParser addSingleLineCommentSyntax(String commentPrefix)
CommentParser
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("//");
addSingleLineCommentSyntax in interface CommentParserpublic void parseInto(Path path, MultiFileVerifier verifier)
parseInto in interface CommentParserpath - source file to parseverifier - verifier for feedpublic void parseInto(Path path, SingleFileVerifier verifier)
parseInto in interface CommentParserpath - source file to parseverifier - verifier for feedCopyright © 2009–2018 SonarSource. All rights reserved.