- 所有已知子接口:
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
-
方法概要
修饰符和类型方法说明voidaddCommentHandler(CommentHandler handler) Register this handler as a comment-listener.
-
方法详细资料
-
addCommentHandler
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
-