CommentEventsCollector

constructor(parser: Parser, vararg expectedCommentTypes: CommentType)

Constructor used to collect comment events emitted by a Parser.

Parameters

parser

the event source.

expectedCommentTypes

the comment types expected. Any comment types not included are not collected.


constructor(eventSource: ArrayDeque<Event>, vararg expectedCommentTypes: CommentType)

Constructor used to collect events emitted by the Serializer.

Parameters

eventSource

the event source.

expectedCommentTypes

the comment types expected. Any comment types not included are not collected.