aboutsummaryrefslogtreecommitdiff
path: root/src/Generation/JavaSignatureGenerator.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 18:29:20 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 18:29:20 +0400
commit6168541bd5bb141c40a1e2a909afa84441b35ed5 (patch)
treec6bf390f321039b2a68905db2f7f8230b2eacbea /src/Generation/JavaSignatureGenerator.kt
parenta6c9bfb98b1b298e125d69cc0854fcc94259ad59 (diff)
downloaddokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.tar.gz
dokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.tar.bz2
dokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.zip
Support enums in model
Diffstat (limited to 'src/Generation/JavaSignatureGenerator.kt')
-rw-r--r--src/Generation/JavaSignatureGenerator.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Generation/JavaSignatureGenerator.kt b/src/Generation/JavaSignatureGenerator.kt
index 6ba9ac88..774eaeb4 100644
--- a/src/Generation/JavaSignatureGenerator.kt
+++ b/src/Generation/JavaSignatureGenerator.kt
@@ -8,6 +8,8 @@ class JavaSignatureGenerator : SignatureGenerator {
Kind.Package -> renderPackage(node)
Kind.Class,
Kind.Interface,
+ Kind.Enum,
+ Kind.EnumItem,
Kind.Object -> renderClass(node)
Kind.TypeParameter -> renderTypeParameter(node)
@@ -83,6 +85,8 @@ class JavaSignatureGenerator : SignatureGenerator {
when (node.kind) {
Kind.Class -> append("class ")
Kind.Interface -> append("interface ")
+ Kind.Enum -> append("enum ")
+ Kind.EnumItem -> append("enum value ")
Kind.Object -> append("class ")
else -> throw IllegalArgumentException("Node $node is not a class-like object")
}