aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/CommandHandler.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/CommandHandler.kt')
-rw-r--r--plugins/templating/src/main/kotlin/templates/CommandHandler.kt12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/CommandHandler.kt b/plugins/templating/src/main/kotlin/templates/CommandHandler.kt
index d72092a1..1956310b 100644
--- a/plugins/templating/src/main/kotlin/templates/CommandHandler.kt
+++ b/plugins/templating/src/main/kotlin/templates/CommandHandler.kt
@@ -2,10 +2,18 @@ package org.jetbrains.dokka.templates
import org.jetbrains.dokka.base.templating.Command
import org.jsoup.nodes.Element
+import org.jsoup.nodes.Node
import java.io.File
-interface CommandHandler {
- fun handleCommand(element: Element, command: Command, input: File, output: File)
+
+interface CommandHandler {
+ @Deprecated("This was renamed to handleCommandAsTag", ReplaceWith("handleCommandAsTag(command, element, input, output)"))
+ fun handleCommand(element: Element, command: Command, input: File, output: File) { }
+
+ @Suppress("DEPRECATION")
+ fun handleCommandAsTag(command: Command, body: Element, input: File, output: File) =
+ handleCommand(body, command, input, output)
+ fun handleCommandAsComment(command: Command, body: List<Node>, input: File, output: File) { }
fun canHandle(command: Command): Boolean
fun finish(output: File) {}
} \ No newline at end of file