diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-30 18:43:48 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-30 18:43:48 +0100 |
commit | e4b2ae90bf0e84f76ceb7c56b7c128d28adad917 (patch) | |
tree | b1e7d86b808b41909679d44da8ac97bec1928c44 /javadoc/src/main/kotlin/dokka-adapters.kt | |
parent | 17492c5f48c459dd44eafb0e747c1164193ca7f7 (diff) | |
download | dokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.tar.gz dokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.tar.bz2 dokka-e4b2ae90bf0e84f76ceb7c56b7c128d28adad917.zip |
initial support for generating javadoc from Kotlin light classes
Diffstat (limited to 'javadoc/src/main/kotlin/dokka-adapters.kt')
-rw-r--r-- | javadoc/src/main/kotlin/dokka-adapters.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/javadoc/src/main/kotlin/dokka-adapters.kt b/javadoc/src/main/kotlin/dokka-adapters.kt index 0f7c53d7..a863faf7 100644 --- a/javadoc/src/main/kotlin/dokka-adapters.kt +++ b/javadoc/src/main/kotlin/dokka-adapters.kt @@ -1,10 +1,11 @@ package org.jetbrains.dokka.javadoc +import com.google.inject.Inject import com.sun.tools.doclets.formats.html.HtmlDoclet import org.jetbrains.dokka.* import org.jetbrains.dokka.Formats.FormatDescriptor -class JavadocGenerator(val conf: DokkaGenerator) : Generator { +class JavadocGenerator @Inject constructor (val conf: DokkaGenerator) : Generator { override fun buildPages(nodes: Iterable<DocumentationNode>) { val module = nodes.single() as DocumentationModule @@ -24,6 +25,8 @@ class JavadocFormatDescriptor : FormatDescriptor { get() = null override val generatorServiceClass: Class<out Generator> - get() = javaClass<JavadocGenerator>() -} + get() = JavadocGenerator::class.java + override val packageDocumentationBuilderServiceClass: Class<out PackageDocumentationBuilder>? + get() = KotlinAsJavaDocumentationBuilder::class.java +} |