public interface NativeHeaderTool extends Tool, OptionChecker
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 | Interface and Description |
---|---|
static interface |
NativeHeaderTool.NativeHeaderTask
Interface representing a future for a native header task.
|
Modifier and Type | Method and Description |
---|---|
StandardJavaFileManager |
getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener,
Locale locale,
Charset charset)
Gets a new instance of the standard file manager implementation
for this tool.
|
NativeHeaderTool.NativeHeaderTask |
getTask(Writer out,
JavaFileManager fileManager,
DiagnosticListener<? super JavaFileObject> diagnosticListener,
Iterable<String> options,
Iterable<String> classes)
Creates a future for a native header task with the given
components and arguments.
|
getSourceVersions, name, run
isSupportedOption
NativeHeaderTool.NativeHeaderTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes)
If a file manager is provided, it must be able to handle all
locations defined in StandardLocation
.
out
- a Writer for additional output from the task;
use System.err
if null
fileManager
- a file manager; if null
use the
task's standard filemanagerdiagnosticListener
- a diagnostic listener; if null
use the compiler's default method for reporting
diagnosticsoptions
- task options, null
means no optionsclasses
- class names for which native headers should be generatedRuntimeException
- 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
sourceStandardJavaFileManager getStandardFileManager(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 tool's default method
for reporting diagnosticslocale
- 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 defaultCopyright © 2017 earcam. All rights reserved.