public interface BuckJavacTaskProxy extends JavaCompiler.CompilationTask
JavacTask
is included with the compiler and is thus not directly
accessible from within Buck's class loader. This interface is used as a proxy within Buck's class
loader to allow access to commonly-used methods.Modifier and Type | Method and Description |
---|---|
void |
addPostEnterCallback(java.util.function.Consumer<Set<Element>> callback) |
void |
addTaskListener(BuckJavacTaskListener taskListener) |
Iterable<? extends Element> |
analyze() |
Iterable<? extends Element> |
enter() |
Iterable<? extends JavaFileObject> |
generate() |
ElementsExtended |
getElements() |
Messager |
getMessager() |
static BuckJavacTaskProxy |
getTask(PluginClassLoaderFactory loaderFactory,
JavaCompiler compiler,
Writer out,
JavaFileManager fileManager,
DiagnosticListener<? super JavaFileObject> diagnosticListener,
Iterable<String> options,
Iterable<String> classes,
Iterable<? extends JavaFileObject> compilationUnits) |
Types |
getTypes() |
Iterable<CompilationUnitTreeProxy> |
parse() |
void |
removeTaskListener(BuckJavacTaskListener taskListener) |
void |
setTaskListener(BuckJavacTaskListener taskListener) |
call, setLocale, setProcessors
static BuckJavacTaskProxy getTask(PluginClassLoaderFactory loaderFactory, JavaCompiler compiler, Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)
Iterable<CompilationUnitTreeProxy> parse() throws IOException
IOException
Iterable<? extends Element> enter() throws IOException
IOException
Iterable<? extends Element> analyze() throws IOException
IOException
Iterable<? extends JavaFileObject> generate() throws IOException
IOException
void setTaskListener(BuckJavacTaskListener taskListener)
void addTaskListener(BuckJavacTaskListener taskListener)
void removeTaskListener(BuckJavacTaskListener taskListener)
void addPostEnterCallback(java.util.function.Consumer<Set<Element>> callback)
ElementsExtended getElements()
Types getTypes()
Messager getMessager()