How does eclipse internally build its internal representation of java code in order to be able to detect things like unreferenced methods, or to find method references in a project? And is there any way to get a hook into that information to build tools based on eclipse's internal parsing, Whether as an eclipse plug-in or as a standalone? (for use in building some small tools for dead-code detection)
The closest thing I've found would involve building my own representations using bcel, but that definitely smells of reinventing the wheel.