Re: Method completion
Wade Chandler <hwadechandler-beanshell-/[email protected]> Thu, 6 Apr 2006 05:15:56 -0700 (PDT)
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
--- WildDonkey <[email protected]> wrote: > Hi > 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. > Thanks > David > Much larger question than can be answered really in a few emails. I think it would be easier to download an open source IDE like Netbeans and see how they did it. You would not only have pointers, but a real working example and the source. Wade ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642