Class ExtractDocumentationAsJsonDoclet
- java.lang.Object
-
- jdk.javadoc.doclet.StandardDoclet
-
- capital.scalable.restdocs.jsondoclet.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jdk.javadoc.doclet.Doclet
Doclet.Option
-
-
Constructor Summary
Constructors Constructor Description ExtractDocumentationAsJsonDoclet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Doclet.Option>getSupportedOptions()Running a doclet with unknown options results in an error.booleanrun(DocletEnvironment docEnv)-
Methods inherited from class jdk.javadoc.doclet.StandardDoclet
getName, getSupportedSourceVersion, init
-
-
-
-
Method Detail
-
run
public boolean run(DocletEnvironment docEnv)
- Specified by:
runin interfaceDoclet- Overrides:
runin classStandardDoclet
-
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:
getSupportedOptionsin interfaceDoclet- Overrides:
getSupportedOptionsin classStandardDoclet- Returns:
- The options we want and those we want to ignore.
-
-