| Modifier and Type | Class and Description |
|---|---|
| public static interface | DocumentationTool.
Interface representing a future for a documentation task. |
| public static enum | DocumentationTool.
Locations specific to |
| Modifier and Type | Method and Description |
|---|---|
| public StandardJavaFileManager | Returns: the standard file managera diagnostic listener for non-fatal
diagnostics; if diagnosticListener, Locale null use the compiler's default method
for reporting diagnosticsthe locale to apply when formatting diagnostics;
locale, Charset null means the default locale.the character set used for decoding bytes; if
charset)null use the platform defaultReturns a new instance of the standard file manager implementation for this tool. |
| public DocumentationTool. | Returns: an object representing the compilationa Writer for additional output from the tool;
use out, JavaFileManager System.err if nulla file manager; if fileManager, DiagnosticListener<? super JavaFileObject> null use the
tool's standard file managera diagnostic listener; if diagnosticListener, Class<?> null
use the tool's default method for reporting diagnosticsa class providing the necessary methods required
of a doclet; a value of docletClass, Iterable<String> null means to use the standard doclet.documentation tool options and doclet options,
options, Iterable<? extends JavaFileObject> null means no optionsthe compilation units to compile, compilationUnits)null means no compilation unitsCreates a future for a documentation task with the given components and arguments. |
| getStandardFileManager | back to summary |
|---|---|
| public StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset) Returns a new instance of the standard file manager implementation for this tool. The file manager will use the given diagnostic listener for producing any non-fatal diagnostics. Fatal errors will be signaled with the appropriate exceptions. The standard file manager will be automatically reopened if
it is accessed after calls to
| |
| getTask | back to summary |
|---|---|
| public DocumentationTool. Creates a future for a documentation task with the given components and arguments. The task might not have completed as described in the DocumentationTask interface. If a file manager is provided, it must be able to handle all
locations defined in
| |
Before calling the call method, additional aspects of the
task can be configured, for example, by calling the
setLocale method.
| Modifier and Type | Method and Description |
|---|---|
| public void | addModules(Iterable<String>
the names of the root modules moduleNames)Adds root modules to be taken into account during module resolution. |
| public Boolean | Returns: true if and only all the files were processed without errors; false otherwiseRedeclares java. Performs this documentation task. |
| public void |
| addModules | back to summary |
|---|---|
| public void addModules(Iterable<String> moduleNames) Adds root modules to be taken into account during module
resolution.
Invalid module names may cause either
| |
| call | back to summary |
|---|---|
| public Boolean call() Redeclares java. Performs this documentation task. The task may only
be performed once. Subsequent calls to this method throw
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Sets the locale to be applied when formatting diagnostics and other localized data.
| |
DocumentationTool.
StandardLocation
| Modifier and Type | Field and Description |
|---|---|
| public static final DocumentationTool. | DOCLET_PATH
Location to search for doclets. |
| public static final DocumentationTool. | DOCUMENTATION_OUTPUT
Location of new documentation files. |
| public static final DocumentationTool. | SNIPPET_PATH
Location to search for snippets. |
| public static final DocumentationTool. | TAGLET_PATH
Location to search for taglets. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | getName()
Implements javax. Returns the name of this location. |
| public boolean | isOutputLocation()
Implements javax. Determines if this is an output location. |
| public static DocumentationTool. | |
| public static DocumentationTool. |
| DOCLET_PATH | back to summary |
|---|---|
| public static final DocumentationTool. Location to search for doclets. | |
| DOCUMENTATION_OUTPUT | back to summary |
|---|---|
| public static final DocumentationTool. Location of new documentation files. | |
| SNIPPET_PATH | back to summary |
|---|---|
| public static final DocumentationTool. Location to search for snippets.
| |
| TAGLET_PATH | back to summary |
|---|---|
| public static final DocumentationTool. Location to search for taglets. | |
| Location | back to summary |
|---|---|
| private Location() | |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. Doc from javax. Returns the name of this location.
| |
| isOutputLocation | back to summary |
|---|---|
| public boolean isOutputLocation() Implements javax. Doc from javax. Determines if this is an output location. An output location is a location that is conventionally used for output.
| |
| valueOf | back to summary |
|---|---|
| public static DocumentationTool. | |
| values | back to summary |
|---|---|
| public static DocumentationTool. | |