|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavafxCompiler
The interface to invoke JavaFX Script compilers from programs, used with ServiceLoader lookup. This interface is based on the JavaCompiler interface; see its documentation for detailed descriptions.
JavaCompiler
Nested Class Summary | |
---|---|
static interface |
JavafxCompiler.CompilationTask
Interface representing a future for a compilation task. |
Method Summary | |
---|---|
javax.tools.StandardJavaFileManager |
getStandardFileManager(javax.tools.DiagnosticListener<? super javax.tools.JavaFileObject> diagnosticListener,
java.util.Locale locale,
java.nio.charset.Charset charset)
Gets a new instance of the standard file manager implementation for this tool. |
JavafxcTask |
getTask(java.io.Writer out,
javax.tools.JavaFileManager fileManager,
javax.tools.DiagnosticListener<? super javax.tools.JavaFileObject> diagnosticListener,
java.lang.Iterable<java.lang.String> options,
java.lang.Iterable<? extends javax.tools.JavaFileObject> compilationUnits)
Creates a future for a compilation task with the given components and arguments. |
Methods inherited from interface javax.tools.Tool |
---|
getSourceVersions, run |
Methods inherited from interface javax.tools.OptionChecker |
---|
isSupportedOption |
Method Detail |
---|
JavafxcTask getTask(java.io.Writer out, javax.tools.JavaFileManager fileManager, javax.tools.DiagnosticListener<? super javax.tools.JavaFileObject> diagnosticListener, java.lang.Iterable<java.lang.String> options, java.lang.Iterable<? extends javax.tools.JavaFileObject> compilationUnits)
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 compiler;
use System.err
if null
fileManager
- a file manager; if null
use the
compiler's standard filemanagerdiagnosticListener
- a diagnostic listener; if null
use the compiler's default method for reporting
diagnosticsoptions
- compiler options, null
means no optionscompilationUnits
- the compilation units to compile, null
means no compilation units
java.lang.RuntimeException
- if an unrecoverable error
occurred in a user supplied component. The
cause will be the error in
user code.
java.lang.IllegalArgumentException
- if any of the given
compilation units are of other kind than
sourcejavax.tools.StandardJavaFileManager getStandardFileManager(javax.tools.DiagnosticListener<? super javax.tools.JavaFileObject> diagnosticListener, java.util.Locale locale, java.nio.charset.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 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 default
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |