接口 CommentScanner

所有已知子接口:
JavaLexer
所有已知实现类:
JFlexLexer

public interface CommentScanner
Classes implementing this interface can trigger the handler for every time it has parsed a comment.
从以下版本开始:
2.0
作者:
Robert Scholte
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Register this handler as a comment-listener.
  • 方法详细资料

    • addCommentHandler

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