Class InternalCommentParser

    • Constructor Detail

      • InternalCommentParser

        public InternalCommentParser()
    • Method Detail

      • addSingleLineCommentSyntax

        public InternalCommentParser addSingleLineCommentSyntax​(String commentPrefix)
        Description copied from interface: 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("//");
         
        Specified by:
        addSingleLineCommentSyntax in interface CommentParser