public abstract class JavacTask extends Object implements JavaCompiler.CompilationTask
Constructor and Description |
---|
JavacTask() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
call, setLocale, setProcessors
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()
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved.