getDeclarationAsString

open fun getDeclarationAsString(includingModifiers: Boolean, includingThrows: Boolean, includingParameterName: Boolean): String(source)

The declaration returned has this schema:

[accessSpecifier] className [throws exceptionsList]