public static interface JavaCompiler.CompilationTask
extends java.util.concurrent.Callable<java.lang.Boolean>
Before calling the call method, additional aspects of the task can be configured, for example, by calling the setProcessors method.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
call()
Performs this compilation task.
|
void |
setLocale(java.util.Locale locale)
Set the locale to be applied when formatting diagnostics and
other localized data.
|
void |
setProcessors(java.lang.Iterable<? extends Processor> processors)
Sets processors (for annotation processing).
|
void setProcessors(java.lang.Iterable<? extends Processor> processors)
processors - processors (for annotation processing)java.lang.IllegalStateException - if the task has startedvoid setLocale(java.util.Locale locale)
locale - the locale to apply; null means apply no
localejava.lang.IllegalStateException - if the task has startedjava.lang.Boolean call()
call in interface java.util.concurrent.Callable<java.lang.Boolean>java.lang.RuntimeException - if an unrecoverable error occurred
in a user-supplied component. The
cause will be the error
in user code.java.lang.IllegalStateException - if called more than once