This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
DiagnosticListener, Diagnostic, JavaFileManager
| Modifier and Type | Class and Description |
|---|---|
| public static interface | DisassemblerTool.
Interface representing a future for a disassembly task. |
| 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 DisassemblerTool. | Returns: a task to perform the disassemblya Writer for additional output from the compiler;
use out, JavaFileManager System.err if nulla file manager; if fileManager, DiagnosticListener<? super JavaFileObject> null use the
compiler's standard filemanagera diagnostic listener; if diagnosticListener, Iterable<String> null use the compiler's default method for reporting
diagnosticscompiler options, options, Iterable<String> null means no optionsclass names (for annotation processing), classes)null means no class namesCreates a future for a disassembly 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 signalled with the appropriate exceptions. The standard file manager will be automatically reopened if
it is accessed after calls to
| |
| getTask | back to summary |
|---|---|
| public DisassemblerTool. Creates a future for a disassembly task with the given components and arguments. The task might not have completed as described in the DissemblerTask 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 Boolean | Returns: true if and only all the files compiled without errors; false otherwiseRedeclares java. Performs this compilation task. |
| public void |
| call | back to summary |
|---|---|
| public Boolean call() Redeclares java. Performs this compilation task. The compilation may only be performed once. Subsequent calls to this method throw IllegalStateException.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Set the locale to be applied when formatting diagnostics and other localized data.
| |