I'm trying to add some kind of method completion to the jconsole.
The basic idea was to use javap on the variable which then prints out the filtered list matching the string between the . and the end of line. This kind of works but now I realise it's rather annoying not to be able to chain methods as in: inst.methodA().methodB(a,b).methodC().TAB

What is the best way to resolve what the type of parameters being passed to methodB is - do I need to resort to using the java parser and if so, could someone give me some pointers ?

I'll obviously send the patch back when its working properly.