public class JavacTaskImpl extends BasicJavacTask
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.
context| Modifier and Type | Method and Description |
|---|---|
Iterable<? extends Element> |
analyze()
Complete all analysis.
|
Iterable<? extends Element> |
analyze(Iterable<? extends TypeElement> classes)
Complete all analysis on the given classes.
|
JavaFileObject |
asJavaFileObject(File file)
Construct a JavaFileObject from the given file.
|
Boolean |
call() |
Main.Result |
doCall() |
Iterable<? extends TypeElement> |
enter()
Translate all the abstract syntax trees to elements.
|
Iterable<? extends TypeElement> |
enter(Iterable<? extends CompilationUnitTree> trees)
Translate the given abstract syntax trees to elements.
|
Iterable<? extends JavaFileObject> |
generate()
Generate code.
|
Iterable<? extends JavaFileObject> |
generate(Iterable<? extends TypeElement> classes)
Generate code corresponding to the given classes.
|
JavacElements |
getElements()
Get a utility object for dealing with program elements.
|
TypeMirror |
getTypeMirror(Iterable<? extends Tree> path)
Get a type mirror of the tree node determined by the specified path.
|
JavacTypes |
getTypes()
Get a utility object for dealing with type mirrors.
|
Iterable<? extends CompilationUnitTree> |
parse()
Parse the specified files returning a list of abstract syntax trees.
|
Type |
parseType(String expr,
TypeElement scope)
For internal use only.
|
Iterable<? extends Tree> |
pathFor(CompilationUnitTree unit,
Tree node) |
void |
setLocale(Locale locale) |
void |
setProcessors(Iterable<? extends Processor> processors) |
addTaskListener, getContext, getTaskListeners, instance, removeTaskListener, setTaskListener, updateContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddModulespublic Main.Result doCall()
public Boolean call()
call in interface Callable<Boolean>call in interface JavaCompiler.CompilationTaskcall in class BasicJavacTaskpublic void setProcessors(Iterable<? extends Processor> processors)
setProcessors in interface JavaCompiler.CompilationTasksetProcessors in class BasicJavacTaskpublic void setLocale(Locale locale)
setLocale in interface JavaCompiler.CompilationTasksetLocale in class BasicJavacTaskpublic JavaFileObject asJavaFileObject(File file)
TODO: this method is useless here
file - a filepublic Iterable<? extends CompilationUnitTree> parse() throws IOException
parse in class BasicJavacTaskIOException - TODOpublic Iterable<? extends TypeElement> enter() throws IOException
IOException - TODOpublic Iterable<? extends TypeElement> enter(Iterable<? extends CompilationUnitTree> trees) throws IOException
trees - a list of abstract syntax trees.IOException - TODOpublic Iterable<? extends Element> analyze() throws IOException
analyze in class BasicJavacTaskIOException - TODOpublic Iterable<? extends Element> analyze(Iterable<? extends TypeElement> classes) throws IOException
enter().
If null is specified, all outstanding classes will be analyzed.classes - a list of class elementsIOExceptionpublic Iterable<? extends JavaFileObject> generate() throws IOException
generate in class BasicJavacTaskIOException - TODOpublic Iterable<? extends JavaFileObject> generate(Iterable<? extends TypeElement> classes) throws IOException
enter().
If there are classes outstanding to be analyzed, that will be done before
any classes are generated.
If null is specified, code will be generated for all outstanding classes.classes - a list of class elementsIOExceptionpublic TypeMirror getTypeMirror(Iterable<? extends Tree> path)
JavacTaskTrees.getTypeMirror in class BasicJavacTaskTrees.getTypeMirror(com.sun.source.util.TreePath)public JavacElements getElements()
JavacTaskgetElements in class BasicJavacTaskpublic JavacTypes getTypes()
JavacTaskgetTypes in class BasicJavacTaskpublic Iterable<? extends Tree> pathFor(CompilationUnitTree unit, Tree node)
public Type parseType(String expr, TypeElement scope)
Copyright © 2017 earcam. All rights reserved.