getAllAnnotationsOfType

abstract suspend fun getAllAnnotationsOfType(types: Set<ERROR CLASS: Symbol not found for AnnotationType>): List<Annotation>

Returns all annotations of passed types in this document.

WARNING: Parsing all annotations in a document can take some time.

Return

List of all annotations of passed types in a document.

Parameters

types

Annotation types to return. ALL_ANNOTATION_TYPES can be used as a shorthand parameter for all annotations.


abstract suspend fun getAllAnnotationsOfType(types: Set<ERROR CLASS: Symbol not found for AnnotationType>, startIndex: Int, pageCount: Int): List<Annotation>

Returns all annotations of passed types in the specified page index range.

Note: this call may block for a while and should not be invoked on the main thread.

Return

List of all annotations of passed types in a document.

Parameters

types

Annotation types to return. ALL_ANNOTATION_TYPES can be used as a shorthand parameter for all annotations.

startIndex

Index of the page to start the search.

pageCount

Number of pages to be included, starting the count with the startIndex page.