isOfType

inline fun <A : Annotation> KSAnnotation.isOfType(): Boolean(source)

Checks whether an KSAnnotation is of type A.


inline fun <T> KSTypeReference.isOfType(): Boolean(source)

Checks whether an KSTypeReference is of type T.


fun KSAnnotation.isOfType(qualifiedName: String): Boolean(source)

Checks whether an KSAnnotation is of type by it's qualifiedName.


fun KSTypeReference.isOfType(qualifiedName: String, canBeTypeAlias: Boolean = true): Boolean(source)

Checks whether an KSTypeReference is of type by it's qualifiedName.

Parameters

canBeTypeAlias

whether the type could resolve to a type alias (only set this to false if you know what it does)