public static interface JavaCompiler.CompilationTask extends Callable<Boolean>
电话呼叫的方法之前,对任务的其他方面都是可配置的,例如,通过调用setProcessors方法。
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.