Interface CommentScanner

  • All Known Subinterfaces:
    JavaLexer
    All Known Implementing Classes:
    JFlexLexer

    public interface CommentScanner
    Classes implementing this interface can trigger the handler for every time it has parsed a comment.
    Since:
    2.0
    • Method Detail

      • addCommentHandler

        void addCommentHandler​(CommentHandler handler)
        Register this handler as a comment-listener. If scanner hits a comment, all handlers will be triggered.
        Parameters:
        handler - the commentHandler to add to the CommentScanner