| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getSourceVersions()
Implements javax. Returns the source versions of the Java programming language supported by this tool. |
| public StandardJavaFileManager | getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
Implements javax. Returns a new instance of the standard file manager implementation for this tool. |
| public DocumentationTool. | getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits)
Implements javax. Creates a future for a documentation task with the given components and arguments. |
| public DocumentationTool. | getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits, Context context)
|
| public int | isSupportedOption(String option)
Implements javax. Determines if the given option is supported and if so, the number of arguments the option takes. |
| public String | name()
Overrides default javax. Returns the name of this tool, or an empty string if no name is provided. |
| public int | run(InputStream in, OutputStream out, OutputStream err, String... arguments)
Implements javax. Run the tool with the given I/O channels and arguments. |
| JavadocTool | back to summary |
|---|---|
| public JavadocTool() | |
| getSourceVersions | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Returns the source versions of the Java programming language supported by this tool.
| |
| getStandardFileManager | back to summary |
|---|---|
| public StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset) Implements javax. Doc from javax. 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. Implements javax. Doc from javax. 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
| |
| getTask | back to summary |
|---|---|
| public DocumentationTool. | |
| isSupportedOption | back to summary |
|---|---|
| public int isSupportedOption(String option) Implements javax. Doc from javax. Determines if the given option is supported and if so, the number of arguments the option takes.
| |
| name | back to summary |
|---|---|
| public String name() Overrides default javax. Doc from javax. Returns the name of this tool, or an empty string if no name is provided.
| |
| run | back to summary |
|---|---|
| public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) Implements javax. Doc from javax. Run the tool with the given I/O channels and arguments. By
convention a tool returns 0 for success and nonzero for errors.
Any diagnostics generated will be written to either
| |