Package-level declarations
Functions
Link copied to clipboard
fun <S : Symbol.Annotation<S, A>, A : Symbol.Annotation.Instance<S, A>> KSAnnotated.findAnnotation(annotation: S, checkResolvedTypes: Boolean = true): A?
Find the first annotation instance of annotation type.
Link copied to clipboard
fun <S : Symbol.Annotation<S, A>, A : Symbol.Annotation.Instance<S, A>> KSAnnotated.findAnnotations(annotation: S, checkResolvedTypes: Boolean = true): List<A>
Find any annotation instances of annotation type.
Link copied to clipboard
fun <S : Symbol.Annotation<S, A>, A : Symbol.Annotation.Instance<S, A>> KSAnnotation.readAnnotation(annotation: S, checkResolvedTypes: Boolean = true): A?
Read an annotation instance from a KSAnnotation. Will return null if the annotation is not of type annotation.