Interface CommentListener
- All Known Implementing Classes:
FileContents
public interface CommentListener
This interface is used to be notified by parser about comments
in the parsed code.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportBlockComment
(String type, int startLineNo, int startColNo, int endLineNo, int endColNo) Report the location of a block comment that can span multiple lines.void
reportSingleLineComment
(String type, int startLineNo, int startColNo) Report the location of a single-line comment that extends from the given point to the end of the line.
-
Method Details
-
reportSingleLineComment
Report the location of a single-line comment that extends from the given point to the end of the line. The type of comment is identified by a String whose value depends on the language being parsed, but would typically be the delimiter for the comment.- Parameters:
type
- an identifier for what type of comment it is.startLineNo
- the starting line numberstartColNo
- the starting column number
-
reportBlockComment
Report the location of a block comment that can span multiple lines. The type of comment is identified by a String whose value depends on the language being parsed, but would typically be the delimiter for the comment.- Parameters:
type
- an identifier for what type of comment it is.startLineNo
- the starting line numberstartColNo
- the starting column numberendLineNo
- the ending line numberendColNo
- the ending column number
-