|
Compiler Tree API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.source.util.JavacTask
public abstract class JavacTask
Provides access to functionality specific to the Sun Java Compiler, javac.
Constructor Summary | |
---|---|
JavacTask()
|
Method Summary | |
---|---|
abstract Iterable<? extends Element> |
analyze()
Complete all analysis. |
abstract Iterable<? extends JavaFileObject> |
generate()
Generate code. |
abstract Elements |
getElements()
Get a utility object for dealing with program elements. |
abstract TypeMirror |
getTypeMirror(Iterable<? extends Tree> path)
Get a type mirror of the tree node determined by the specified path. |
abstract Types |
getTypes()
Get a utility object for dealing with type mirrors. |
abstract Iterable<? extends CompilationUnitTree> |
parse()
Parse the specified files returning a list of abstract syntax trees. |
abstract void |
setTaskListener(TaskListener taskListener)
The specified listener will receive events describing the progress of this compilation task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.tools.JavaCompiler.CompilationTask |
---|
call, setLocale, setProcessors |
Constructor Detail |
---|
public JavacTask()
Method Detail |
---|
public abstract Iterable<? extends CompilationUnitTree> parse() throws IOException
IOException
- if an unhandled I/O error occurred in the compiler.public abstract Iterable<? extends Element> analyze() throws IOException
IOException
- if an unhandled I/O error occurred in the compiler.public abstract Iterable<? extends JavaFileObject> generate() throws IOException
IOException
- if an unhandled I/O error occurred in the compiler.public abstract void setTaskListener(TaskListener taskListener)
public abstract TypeMirror getTypeMirror(Iterable<? extends Tree> path)
public abstract Elements getElements()
public abstract Types getTypes()
|
Compiler Tree API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |