Class IncludePublicAnnotationsStandardDoclet

java.lang.Object
org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet
All Implemented Interfaces:
Doclet

public class IncludePublicAnnotationsStandardDoclet extends Object implements Doclet
Doclet that only includes class-level elements that are annotated with InterfaceAudience.Public. Class-level elements with no annotation are excluded. In addition, all elements that are annotated with InterfaceAudience.Private or InterfaceAudience.LimitedPrivate are also excluded. It delegates to the Standard Doclet, and takes the same options.
  • Constructor Details

    • IncludePublicAnnotationsStandardDoclet

      public IncludePublicAnnotationsStandardDoclet()
      Public no-arg constructor required by the Javadoc tool.
  • Method Details

    • languageVersion

      public static SourceVersion languageVersion()
      Returns the source version used by this doclet.
      Returns:
      the supported source version
    • init

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

      public String getName()
      Specified by:
      getName in interface Doclet
    • getSupportedOptions

      public Set<Doclet.Option> getSupportedOptions()
      Specified by:
      getSupportedOptions in interface Doclet
    • getSupportedSourceVersion

      public SourceVersion getSupportedSourceVersion()
      Specified by:
      getSupportedSourceVersion in interface Doclet
    • run

      public boolean run(DocletEnvironment env)
      Specified by:
      run in interface Doclet
    • start

      public static boolean start(DocletEnvironment env)
      Legacy doclet entry point used by Javadoc.
      Parameters:
      env - the doclet environment
      Returns:
      true if the doclet completed successfully
    • optionLength

      public static int optionLength(String option)
      Returns the length of a supported option.
      Parameters:
      option - the option name
      Returns:
      the number of arguments including the option itself
    • validOptions

      public static boolean validOptions(String[][] options, Reporter reporter)
      Validates options before running the doclet.
      Parameters:
      options - the options to validate
      reporter - the reporter to use for diagnostics
      Returns:
      true if the options are valid