Class InternalCommentParser
- java.lang.Object
-
- org.sonarsource.analyzer.commons.checks.verifier.internal.InternalCommentParser
-
- All Implemented Interfaces:
CommentParser
public class InternalCommentParser extends Object implements CommentParser
-
-
Constructor Summary
Constructors Constructor Description InternalCommentParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalCommentParseraddSingleLineCommentSyntax(String commentPrefix)This comment parser is able split a line using "commentPrefix".voidparseInto(Path path, MultiFileVerifier verifier)voidparseInto(Path path, SingleFileVerifier verifier)
-
-
-
Method Detail
-
addSingleLineCommentSyntax
public InternalCommentParser addSingleLineCommentSyntax(String commentPrefix)
Description copied from interface:CommentParserThis 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("//");- Specified by:
addSingleLineCommentSyntaxin interfaceCommentParser
-
parseInto
public void parseInto(Path path, MultiFileVerifier verifier)
- Specified by:
parseIntoin interfaceCommentParser- Parameters:
path- source file to parseverifier- verifier for feed
-
parseInto
public void parseInto(Path path, SingleFileVerifier verifier)
- Specified by:
parseIntoin interfaceCommentParser- Parameters:
path- source file to parseverifier- verifier for feed
-
-