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 Summary

    Modifier and Type
    Method
    Description
    void
    Register this handler as a comment-listener.
  • Method Details

    • 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