public interface DocumentationTool extends Tool, OptionChecker
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DocumentationTool
Interface representing a future for a documentation task.
|
static class |
DocumentationTool
Locations specific to
DocumentationTool.
|
| Modifier and Type | Method and Description |
|---|---|
StandardJavaFileManager |
getStandardFileManager(DiagnosticListener
Gets a new instance of the standard file manager implementation for this tool.
|
DocumentationTool |
getTask(Writer
Creates a future for a documentation task with the given components and arguments.
|
getSourceVersions, runisSupportedOptionDocumentationTool.DocumentationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener <? super JavaFileObject > diagnosticListener, Class <?> docletClass, Iterable <String > options, Iterable <? extends JavaFileObject > compilationUnits)
If a file manager is provided, it must be able to handle all locations defined in DocumentationTool.Location, as well as StandardLocation, StandardLocation, and StandardLocation.
out - a Writer for additional output from the tool; use
System.err if
null
fileManager - a file manager; if
null use the tool's standard filemanager
diagnosticListener - a diagnostic listener; if
null use the tool's default method for reporting diagnostics
docletClass - a class providing the necessary methods required of a doclet
options - documentation tool options and doclet options,
null means no options
compilationUnits - the compilation units to compile,
null means no compilation units
RuntimeException - if an unrecoverable error occurred in a user supplied component. The
cause will be the error in user code.
IllegalArgumentException - if any of the given compilation units are of other kind than
source
StandardJavaFileManagergetStandardFileManager(DiagnosticListener <? super JavaFileObject > diagnosticListener, Locale locale, Charset charset)
The standard file manager will be automatically reopened if it is accessed after calls to flush or close. The standard file manager must be usable with other tools.
diagnosticListener - a diagnostic listener for non-fatal diagnostics; if
null use the compiler's default method for reporting diagnostics
locale - the locale to apply when formatting diagnostics;
null means the
default locale.
charset - the character set used for decoding bytes; if
null use the platform default