blob: 20bc420c765f13d828f61c796f43ff44bc85ff30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.jetbrains.dokka.kotlinAsJava.transformers
import org.jetbrains.dokka.kotlinAsJava.converters.KotlinToJavaConverter
import org.jetbrains.dokka.model.DModule
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.transformers.documentation.DocumentableTransformer
class KotlinAsJavaDocumentableTransformer : DocumentableTransformer {
override fun invoke(original: DModule, context: DokkaContext): DModule =
original.copy(packages = original.packages.map {
with(KotlinToJavaConverter(context)) {
it.asJava()
}
})
}
|