Yee Keat Phuah <ykphuah@...> writes:
> On Wed, Jul 8, 2009 at 10:11 PM, Ludovic Courtès <ludo@...> wrote:
>> 1. From source files, which Semantic should be able to do on its own,
>> provided it knows where to look for them.
>> 2. From compiled `.class' files, which needs help from external Java
>> My feeling is that there's a gap to be bridged between both tools. It
>> would be nice if Semantic were able to handle (2), so that we'd have a
>> uniform handling of Java symbol/class lookup.
> I am actually playing around with this.
> Its actually quite easy to extract out symbols from .class files, the format
> is pretty well documented and the parser can be easily ported from eclipse.
JDEE has a `.class' parser written in elisp (jde-parse-class.el). My
understanding is that it's currently underutilized, as the commentary in
this file suggests.
In an ideal world, Semantic/Senator's neat completion framework would
allow us to complete things regardless of whether they are defined in a
`.java' or `.class' file---as opposed to choosing between `C-c C-v .'
and `M-/' depending on the phase of the moon.