Class Javadoc

All Implemented Interfaces:
Generator, ResourceProvider

public class Javadoc extends JavaTool

The Javadoc generator provides the resource JavadocDirectory, a directory that contains generated javadoc files.

No attempt has been made to define types for the options of the javadoc tool. Rather, the options are passed as strings as the ToolProvider API suggests. There are some noteworthy exceptions for options that are directly related to resource types (files, directory trees, paths) from the builder context.

By default, the generator builds the javadoc for the project passed to the constructor. In some cases, e.g. when building a common javadoc for multiple projects, this is not the desired behavior. In this case, the project(s) to generate javadoc can be set with projects.

The sources processed default to the project's JavaSourceFiles, i.e. the resources obtained by invoking get(new ResourceRequest<FileTree<JavaSourceFile>>(new ResourceType<>() {})) on the project(s). This can be overridden by setting the sources with one or several invocations of the addSources-methods.

  • Constructor Details

    • Javadoc

      public Javadoc(Project project)
      Instantiates a new java compiler.
      Parameters:
      project - the project
  • Method Details