Home » openjdk-7 » com.sun.tools » javac » api » [javadoc | source]
public class: JavacTaskImpl [javadoc | source]

All Implemented Interfaces:

Provides access to functionality specific to the JDK Java Compiler, javac.

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.

Nested Class Summary:
abstract class  JavacTaskImpl.Filter   
 JavacTaskImpl(Main compilerMain,
    String[] args,
    Context context,
    List<JavaFileObject> fileObjects) 
 JavacTaskImpl(Main compilerMain,
    Iterable<String> flags,
    Context context,
    Iterable<String> classes,
    Iterable<JavaFileObject> fileObjects) 
Method from com.sun.tools.javac.api.JavacTaskImpl Summary:
analyze,   analyze,   asJavaFileObject,   call,   cleanup,   enter,   enter,   generate,   generate,   getContext,   getElements,   getTypeMirror,   getTypes,   parse,   parseType,   pathFor,   setLocale,   setProcessors,   setTaskListener,   updateContext
Methods from com.sun.source.util.JavacTask:
analyze,   generate,   getElements,   getTypeMirror,   getTypes,   parse,   setTaskListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.api.JavacTaskImpl Detail:
 public Iterable<Element> analyze() throws IOException 
    Complete all analysis.
 public Iterable<Element> analyze(Iterable<TypeElement> classes) throws IOException 
    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 #enter . If null is specified, all outstanding classes will be analyzed.
 public JavaFileObject asJavaFileObject(File file) 
    Construct a JavaFileObject from the given file.

    TODO: this method is useless here

 public Boolean call() 
  void cleanup() 
 public Iterable<TypeElement> enter() throws IOException 
    Translate all the abstract syntax trees to elements.
 public Iterable<TypeElement> enter(Iterable<CompilationUnitTree> trees) throws IOException 
    Translate the given abstract syntax trees to elements.
 public Iterable<JavaFileObject> generate() throws IOException 
    Generate code.
 public Iterable<JavaFileObject> generate(Iterable<TypeElement> classes) throws IOException 
    Generate code corresponding to the given classes. The classes must have previously been returned from #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.
 public Context getContext() 
    For internal use only. This method will be removed without warning.
 public JavacElements getElements() 
 public TypeMirror getTypeMirror(Iterable<Tree> path) 
 public JavacTypes getTypes() 
 public Iterable<CompilationUnitTree> parse() throws IOException 
    Parse the specified files returning a list of abstract syntax trees.
 public Type parseType(String expr,
    TypeElement scope) 
    For internal use only. This method will be removed without warning.
 public Iterable<Tree> pathFor(CompilationUnitTree unit,
    Tree node) 
 public  void setLocale(Locale locale) 
 public  void setProcessors(Iterable<Processor> processors) 
 public  void setTaskListener(TaskListener taskListener) 
 public  void updateContext(Context newContext) 
    For internal use only. This method will be removed without warning.