Incremental java compile AKA javac print compile dependencies

Joshua Maurice joshuamaurice at
Wed May 26 23:28:11 PDT 2010

On Wed, May 26, 2010 at 10:41 PM, Jonathan Gibbons <
jonathan.gibbons at> wrote:

>  On 05/26/2010 09:09 PM, Joshua Maurice wrote:
>   Currently the tools.jar API, aka JavacTask, gives access to the parse
>> tree of function bodies, but it does not give access to the analyzed tree of
>> function bodies.
> Yes it does.   After you call parse(), call analyze(). Then walk the parse
> trees returned from parse(), and in conjunction with the various utility
> APIs you can find the info you need.
> Look at
>     com.sun.source.util.Trees
>     javax.lang.model.util.Elements
>     javax.lang.model.util.Types
> If you get desperate, cast types down into the internal javac types, but it
> should be possible to use just the public APIs in com.sun.source.* and
> javax.lang.model.**

I shall. Thank you. Ok, so type mirrors can be used on the stuff in the
CompilationUnitTree, or something? Excellent.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the compiler-dev mailing list