aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-08-20 16:19:42 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-20 16:56:21 +0200
commit69d16856abcc68b31d298e6a62a7a58106de69c9 (patch)
treed2ec056c46382f0e1807ab4b410431c4fde957ec /core
parent3af779ff3377901d946a230f9900f5a508bf08e3 (diff)
downloaddokka-69d16856abcc68b31d298e6a62a7a58106de69c9.tar.gz
dokka-69d16856abcc68b31d298e6a62a7a58106de69c9.tar.bz2
dokka-69d16856abcc68b31d298e6a62a7a58106de69c9.zip
Include interfaces to abstract model
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/pages/PageNodes.kt10
-rw-r--r--core/src/main/kotlin/pages/Pages.kt11
2 files changed, 16 insertions, 5 deletions
diff --git a/core/src/main/kotlin/pages/PageNodes.kt b/core/src/main/kotlin/pages/PageNodes.kt
index d49f9911..176c0993 100644
--- a/core/src/main/kotlin/pages/PageNodes.kt
+++ b/core/src/main/kotlin/pages/PageNodes.kt
@@ -67,7 +67,7 @@ class ModulePageNode(
override val documentable: Documentable?,
override val children: List<PageNode>,
override val embeddedResources: List<String> = listOf()
-) : RootPageNode(), ContentPage {
+) : RootPageNode(), ModulePage {
override val dri: Set<DRI> = setOf(DRI.topLevel)
override fun modified(name: String, children: List<PageNode>): ModulePageNode =
@@ -91,7 +91,7 @@ class PackagePageNode(
override val documentable: Documentable?,
override val children: List<PageNode>,
override val embeddedResources: List<String> = listOf()
-) : ContentPage {
+) : PackagePage {
override fun modified(name: String, children: List<PageNode>): PackagePageNode =
modified(name = name, content = this.content, children = children)
@@ -113,7 +113,7 @@ class ClasslikePageNode(
override val documentable: Documentable?,
override val children: List<PageNode>,
override val embeddedResources: List<String> = listOf()
-) : ContentPage {
+) : ClasslikePage {
override fun modified(name: String, children: List<PageNode>): ClasslikePageNode =
modified(name = name, content = this.content, children = children)
@@ -135,7 +135,7 @@ class MemberPageNode(
override val documentable: Documentable?,
override val children: List<PageNode> = emptyList(),
override val embeddedResources: List<String> = listOf()
-) : ContentPage {
+) : MemberPage {
override fun modified(name: String, children: List<PageNode>): MemberPageNode =
modified(name = name, content = this.content, children = children) as MemberPageNode
@@ -156,7 +156,7 @@ class MultimoduleRootPageNode(
override val dri: Set<DRI>,
override val content: ContentNode,
override val embeddedResources: List<String> = emptyList()
-) : RootPageNode(), ContentPage {
+) : RootPageNode(), MultimoduleRootPage {
override val children: List<PageNode> = emptyList()
diff --git a/core/src/main/kotlin/pages/Pages.kt b/core/src/main/kotlin/pages/Pages.kt
new file mode 100644
index 00000000..b65e72d6
--- /dev/null
+++ b/core/src/main/kotlin/pages/Pages.kt
@@ -0,0 +1,11 @@
+package org.jetbrains.dokka.pages
+
+interface MultimoduleRootPage : ContentPage
+
+interface ModulePage : ContentPage
+
+interface PackagePage : ContentPage
+
+interface ClasslikePage : ContentPage
+
+interface MemberPage : ContentPage \ No newline at end of file