1 7 8 package javax.tools; 9 10 import java.io.File ; 11 import java.io.InputStream ; 12 import java.io.Writer ; 13 import java.nio.charset.Charset ; 14 import java.util.List ; 15 import java.util.Locale ; 16 import java.util.concurrent.Callable ; 17 import javax.annotation.processing.Processor; 18 19 203 public interface JavaCompiler extends Tool, OptionChecker { 204 205 234 CompilationTask getTask(Writer out, 235 JavaFileManager fileManager, 236 DiagnosticListener<? super JavaFileObject> diagnosticListener, 237 Iterable <String > options, 238 Iterable <String > classes, 239 Iterable <? extends JavaFileObject> compilationUnits); 240 241 260 StandardJavaFileManager getStandardFileManager( 261 DiagnosticListener<? super JavaFileObject> diagnosticListener, 262 Locale locale, 263 Charset charset); 264 265 274 interface CompilationTask extends Callable <Boolean > { 275 276 283 void setProcessors(Iterable <? extends Processor> processors); 284 285 293 void setLocale(Locale locale); 294 295 309 Boolean call(); 310 } 311 } 312 | Popular Tags |