aboutsummaryrefslogtreecommitdiff
path: root/javadoc/src/main
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 19:16:33 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 19:16:33 +0300
commit5f33cd70f43977a519a808c3941d2fb75d18fdff (patch)
treed768669d9ce6a6c0bca82f66e9b1a951525988e4 /javadoc/src/main
parent23406db80a4672c146aa1b720f403a6a5d4e464f (diff)
downloadLibGui-5f33cd70f43977a519a808c3941d2fb75d18fdff.tar.gz
LibGui-5f33cd70f43977a519a808c3941d2fb75d18fdff.tar.bz2
LibGui-5f33cd70f43977a519a808c3941d2fb75d18fdff.zip
Fix narration element indices and more JD tricks
Diffstat (limited to 'javadoc/src/main')
-rw-r--r--javadoc/src/main/java/io/github/cottonmc/cotton/gui/jd/ExperimentalTaglet.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/javadoc/src/main/java/io/github/cottonmc/cotton/gui/jd/ExperimentalTaglet.java b/javadoc/src/main/java/io/github/cottonmc/cotton/gui/jd/ExperimentalTaglet.java
new file mode 100644
index 0000000..dbd2391
--- /dev/null
+++ b/javadoc/src/main/java/io/github/cottonmc/cotton/gui/jd/ExperimentalTaglet.java
@@ -0,0 +1,30 @@
+package io.github.cottonmc.cotton.gui.jd;
+
+import com.sun.source.doctree.DocTree;
+import jdk.javadoc.doclet.Taglet;
+
+import java.util.List;
+import java.util.Set;
+import javax.lang.model.element.Element;
+
+public class ExperimentalTaglet implements Taglet {
+ @Override
+ public Set<Location> getAllowedLocations() {
+ return Set.of(Location.values());
+ }
+
+ @Override
+ public boolean isInlineTag() {
+ return false;
+ }
+
+ @Override
+ public String getName() {
+ return "experimental";
+ }
+
+ @Override
+ public String toString(List<? extends DocTree> tags, Element element) {
+ return "<dt>Experimental API:</dt><dd>Might be modified or removed without prior notice until stabilised.</dd>";
+ }
+}