public class BasicJavacTask extends JavacTask
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Constructor and Description |
|---|
BasicJavacTask(Context c,
boolean register) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTaskListener(TaskListener taskListener)
The specified listener will receive notification of events
describing the progress of this compilation task.
|
Iterable<? extends Element> |
analyze()
Complete all analysis.
|
Boolean |
call() |
Iterable<? extends JavaFileObject> |
generate()
Generate code.
|
Context |
getContext()
For internal use only.
|
Elements |
getElements()
Get a utility object for dealing with program elements.
|
Collection<TaskListener> |
getTaskListeners() |
TypeMirror |
getTypeMirror(Iterable<? extends Tree> path)
Get a type mirror of the tree node determined by the specified path.
|
Types |
getTypes()
Get a utility object for dealing with type mirrors.
|
static JavacTask |
instance(Context context) |
Iterable<? extends CompilationUnitTree> |
parse()
Parse the specified files returning a list of abstract syntax trees.
|
void |
removeTaskListener(TaskListener taskListener)
The specified listener will no longer receive notification of events
describing the progress of this compilation task.
|
void |
setLocale(Locale locale) |
void |
setProcessors(Iterable<? extends Processor> processors) |
void |
setTaskListener(TaskListener tl)
The specified listener will receive notification of events
describing the progress of this compilation task.
|
void |
updateContext(Context newContext)
For internal use only.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddModulesprotected Context context
public BasicJavacTask(Context c, boolean register)
public Iterable<? extends CompilationUnitTree> parse() throws IOException
JavacTaskparse in class JavacTaskIOException - if an unhandled I/O error occurred in the compiler.public Iterable<? extends Element> analyze() throws IOException
JavacTaskanalyze in class JavacTaskIOException - if an unhandled I/O error occurred in the compiler.public Iterable<? extends JavaFileObject> generate() throws IOException
JavacTaskgenerate in class JavacTaskIOException - if an unhandled I/O error occurred in the compiler.public void setTaskListener(TaskListener tl)
JavacTaskremoveTaskListener for
any listener that has been previously set, followed by addTaskListener
for the new listener.setTaskListener in class JavacTaskpublic void addTaskListener(TaskListener taskListener)
JavacTaskaddTaskListener in class JavacTaskpublic void removeTaskListener(TaskListener taskListener)
JavacTaskremoveTaskListener in class JavacTaskpublic Collection<TaskListener> getTaskListeners()
public TypeMirror getTypeMirror(Iterable<? extends Tree> path)
JavacTaskTrees.getTypeMirror in class JavacTaskTrees.getTypeMirror(com.sun.source.util.TreePath)public Elements getElements()
JavacTaskgetElements in class JavacTaskpublic Types getTypes()
JavacTaskpublic void setLocale(Locale locale)
public Boolean call()
public Context getContext()
public void updateContext(Context newContext)
Copyright © 2017 earcam. All rights reserved.