readAnnotation
fun <S : Symbol.Annotation<S, A>, A : Symbol.Annotation.Instance<S, A>> KSAnnotation.readAnnotation(annotation: S, checkResolvedTypes: Boolean = true): A?(source)
Read an annotation instance from a KSAnnotation. Will return null if the annotation is not of type annotation.
Will check that the fully qualified names match if checkResolvedTypes is true
- otherwise just checks the simple names.