allAnnotations

fun allAnnotations(useSiteTarget: AnnotationSpec.UseSiteTarget? = null, containsReifiedTypeParameter: Boolean = false): Collection<AnnotationSpec>

A collection of all annotations on this method, including any derived from jvmModifiers, isSynthetic, and exceptions.

Parameters

useSiteTarget

an optional UseSiteTarget that all annotations on this method should use.

containsReifiedTypeParameter

an optional boolean indicating if any type parameters on this function are reified, which are implicitly synthetic.