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.
| Modifier and Type | Field and Description |
|---|---|
| protected Context | |
| protected Options | |
| private TaskListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addModules(Iterable<String> moduleNames)
Implements javax. Adds root modules to be taken into account during module resolution. |
| public void | addTaskListener(TaskListener taskListener)
Implements abstract com. Adds a specified listener so that it receives notification of events describing the progress of this compilation task. |
| public Iterable | |
| public Boolean | |
| public Iterable | |
| public Context | |
| public Elements | getElements()
Implements abstract com. Returns a utility object for dealing with program elements. |
| public Collection | |
| public TypeMirror | getTypeMirror(Iterable<? extends Tree> path)
Implements abstract com. Returns a type mirror of the tree node determined by the specified path. |
| public Types | getTypes()
Implements abstract com. Returns a utility object for dealing with type mirrors. |
| public void | |
| private void | |
| public void | |
| public static JavacTask | |
| public Iterable | parse()
Implements abstract com. Parses the specified files returning a list of abstract syntax trees. |
| public void | removeTaskListener(TaskListener taskListener)
Implements abstract com. Removes the specified listener so that it no longer receives notification of events describing the progress of this compilation task. |
| public void | setLocale(Locale locale)
Implements javax. Sets the locale to be applied when formatting diagnostics and other localized data. |
| public void | setParameterNameProvider(ParameterNameProvider handler)
Overrides com. Sets the specified |
| public void | setProcessors(Iterable<? extends Processor> processors)
Implements javax. Sets processors (for annotation processing). |
| public void | setTaskListener(TaskListener tl)
Implements abstract com. Sets a specified listener to receive notification of events describing the progress of this compilation task. |
| context | back to summary |
|---|---|
| protected Context context | |
| options | back to summary |
|---|---|
| protected Options options | |
| taskListener | back to summary |
|---|---|
| private TaskListener taskListener | |
| BasicJavacTask | back to summary |
|---|---|
public BasicJavacTask(Context c, boolean register)
| |
| addModules | back to summary |
|---|---|
| public void addModules(Iterable<String> moduleNames) Implements javax. Doc from javax. Adds root modules to be taken into account during module
resolution.
Invalid module names may cause either
| |
| addTaskListener | back to summary |
|---|---|
| public void addTaskListener(TaskListener taskListener) Implements abstract com. Doc from com. Adds a specified listener so that it receives notification of events describing the progress of this compilation task. This method may be called at any time before or during the compilation.
| |
| analyze | back to summary |
|---|---|
| public Iterable Implements abstract com. Doc from com. Completes all analysis.
| |
| call | back to summary |
|---|---|
| public Boolean call() Implements javax. Doc from javax. Performs this compilation task. The compilation may only
be performed once. Subsequent calls to this method throw
| |
| generate | back to summary |
|---|---|
| public Iterable Implements abstract com. Doc from com. Generates code.
| |
| getContext | back to summary |
|---|---|
| public Context getContext() For internal use only. This method will be removed without warning.
| |
| getElements | back to summary |
|---|---|
| public Elements getElements() Implements abstract com. Doc from com. Returns a utility object for dealing with program elements.
| |
| getTaskListeners | back to summary |
|---|---|
| public Collection | |
| getTypeMirror | back to summary |
|---|---|
| public TypeMirror getTypeMirror(Iterable<? extends Tree> path) Implements abstract com. Doc from com. Returns a type mirror of the tree node determined by the specified path.
This method has been superseded by methods on
| |
| getTypes | back to summary |
|---|---|
| public Types getTypes() Implements abstract com. Doc from com. Returns a utility object for dealing with type mirrors.
| |
| initDocLint | back to summary |
|---|---|
| public void initDocLint(List<String> docLintOpts) | |
| initPlugin | back to summary |
|---|---|
| private void initPlugin(Plugin p, String... args) | |
| initPlugins | back to summary |
|---|---|
| public void initPlugins(Set<List<String>> pluginOpts) | |
| instance | back to summary |
|---|---|
| public static JavacTask instance(Context context) | |
| parse | back to summary |
|---|---|
| public Iterable Implements abstract com. Doc from com. Parses the specified files returning a list of abstract syntax trees.
| |
| removeTaskListener | back to summary |
|---|---|
| public void removeTaskListener(TaskListener taskListener) Implements abstract com. Doc from com. Removes the specified listener so that it no longer receives notification of events describing the progress of this compilation task. This method may be called at any time before or during the compilation.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Implements javax. Doc from javax. Sets the locale to be applied when formatting diagnostics and other localized data.
| |
| setParameterNameProvider | back to summary |
|---|---|
| public void setParameterNameProvider(ParameterNameProvider handler) Overrides com. Doc from com. Sets the specified
| |
| setProcessors | back to summary |
|---|---|
| public void setProcessors(Iterable<? extends Processor> processors) Implements javax. Doc from javax. Sets processors (for annotation processing). This will bypass the normal discovery mechanism.
| |
| setTaskListener | back to summary |
|---|---|
| public void setTaskListener(TaskListener tl) Implements abstract com. Doc from com. Sets a specified listener to receive notification of events
describing the progress of this compilation task.
If another listener is receiving notifications as a result of a prior
call of this method, then that listener will no longer receive notifications.
Informally, this method is equivalent to calling
| |