| java.lang.Object com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl
JavacTaskImpl | public class JavacTaskImpl extends JavacTask (Code) | | Provides access to functionality specific to the Sun Java Compiler, javac.
This is NOT part of any API supported by Sun Microsystems.
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.
author: Peter von der Ahé author: Jonathan Gibbons |
Inner Class :abstract class Filter | |
analyze | public Iterable<? extends Element> analyze(Iterable<? extends TypeElement> classes) throws IOException(Code) | | Complete all analysis on the given classes.
This can be used to ensure that all compile time errors are reported.
The classes must have previously been returned from
JavacTaskImpl.enter .
If null is specified, all outstanding classes will be analyzed.
Parameters: classes - a list of class elements |
asJavaFileObject | public JavaFileObject asJavaFileObject(File file)(Code) | | Construct a JavaFileObject from the given file.
TODO: this method is useless here
Parameters: file - a file a JavaFileObject from the standard file manager. |
enter | public Iterable<? extends TypeElement> enter() throws IOException(Code) | | Translate all the abstract syntax trees to elements.
throws: IOException - TODO a list of elements corresponding to the top levelclasses in the abstract syntax trees |
generate | public Iterable<? extends JavaFileObject> generate(Iterable<? extends TypeElement> classes) throws IOException(Code) | | Generate code corresponding to the given classes.
The classes must have previously been returned from
JavacTaskImpl.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.
Parameters: classes - a list of class elements |
getContext | public Context getContext()(Code) | | For internal use by Sun Microsystems only. This method will be
removed without warning.
|
parseType | public Type parseType(String expr, TypeElement scope)(Code) | | For internal use by Sun Microsystems only. This method will be
removed without warning.
|
updateContext | public void updateContext(Context newContext)(Code) | | For internal use by Sun Microsystems only. This method will be
removed without warning.
|
|
|