Package-level declarations

Functions

Link copied to clipboard
inline fun <A : Annotation> KSAnnotated.getAnnotation(): KSAnnotation?

Returns the first KSAnnotation on this declaration of type A, or null when absent.

fun KSAnnotated.getAnnotation(fqn: String): KSAnnotation?

Returns the first KSAnnotation on this declaration whose declaration FQN matches fqn, or null when no such annotation is present.

Link copied to clipboard
inline fun <A : Annotation> KSAnnotated.hasAnnotation(): Boolean

True when this declaration carries an annotation of type A.

Link copied to clipboard
fun KSAnnotated.quarkdownName(): String?

Returns the string value of Quarkdown's @Name(...) annotation on this declaration, or null when the annotation is absent. Accepts both positional (@Name("foo")) and named (@Name(name = "foo")) argument forms.