Class JsonDoclet

java.lang.Object
io.emop.javadocjson.doclet.JsonDoclet
All Implemented Interfaces:
jdk.javadoc.doclet.Doclet

public class JsonDoclet extends Object implements jdk.javadoc.doclet.Doclet
Custom Doclet implementation that generates JSON output from Javadoc. This replaces the manual parsing approach with the official JDK Doclet API.
  • Constructor Details

    • JsonDoclet

      public JsonDoclet()
  • Method Details

    • init

      public void init(Locale locale, jdk.javadoc.doclet.Reporter reporter)
      Specified by:
      init in interface jdk.javadoc.doclet.Doclet
    • getName

      public String getName()
      Specified by:
      getName in interface jdk.javadoc.doclet.Doclet
    • getSupportedOptions

      public Set<? extends jdk.javadoc.doclet.Doclet.Option> getSupportedOptions()
      Specified by:
      getSupportedOptions in interface jdk.javadoc.doclet.Doclet
    • getSupportedSourceVersion

      public SourceVersion getSupportedSourceVersion()
      Specified by:
      getSupportedSourceVersion in interface jdk.javadoc.doclet.Doclet
    • run

      public boolean run(jdk.javadoc.doclet.DocletEnvironment environment)
      Specified by:
      run in interface jdk.javadoc.doclet.Doclet