Class ExtractDocumentationAsJsonDoclet

  • All Implemented Interfaces:
    Doclet

    public class ExtractDocumentationAsJsonDoclet
    extends StandardDoclet
    Javadoc to JSON doclet.

    Implementation note: this doclet extends the default doclet, mainly to be able to ignore the default parameters. See the getSupportedOptions() method.

    • Constructor Detail

      • ExtractDocumentationAsJsonDoclet

        public ExtractDocumentationAsJsonDoclet()
    • Method Detail

      • getSupportedOptions

        public Set<Doclet.Option> getSupportedOptions()
        Running a doclet with unknown options results in an error. Therefore, we include all default options in the list of possible options, even though we have no way of accessing those. If we want one of the default options, we need to extract them and override them.
        Specified by:
        getSupportedOptions in interface Doclet
        Overrides:
        getSupportedOptions in class StandardDoclet
        Returns:
        The options we want and those we want to ignore.