public static interface JavaCompiler.CompilationTask extends Callable<Boolean>
void setProcessors(Iterable<? extends Processor> processors)
processors
- 处理器(用于注释处理)
IllegalStateException
- 如果任务已经启动
void setLocale(Locale locale)
locale
- 要申请的地区;
null
表示不适用于任何地区
IllegalStateException
- 如果任务已经启动
Boolean call()
call
在接口
Callable<Boolean>
RuntimeException
- 如果在用户提供的组件中发生不可恢复的错误。
cause将是用户代码中的错误。
IllegalStateException
- 如果多次调用
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.