Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Retrieving parameter names from method in an interface
Retrieving parameter names from method in an interface [message #432204] Thu, 30 July 2009 11:59 Go to next message
Eclipse UserFriend
Originally posted by: andi.hotz.adsl.li

Hello

I was wondering, if I add an interface to an existing class an say to
implement the unimplemented methods, the IDE adds all methods with their
parameter names as defined in the interface.
How are the parameter names retrieved? Even if the interface is compiled
with debug information the class file does not contain any information
on the parameter names. The same is true for abstract methods.
Can anyone tell me how JDT does this or at least point me in the right
direction (for example class fragment that implements this refactoring
feature).

cheers

Andy
Re: Retrieving parameter names from method in an interface [message #468175 is a reply to message #432204] Tue, 04 August 2009 09:11 Go to previous message
Eclipse UserFriend
Andi Hotz wrote:
> Hello
>
> I was wondering, if I add an interface to an existing class an say to
> implement the unimplemented methods, the IDE adds all methods with
> their parameter names as defined in the interface.
> How are the parameter names retrieved?
see: org.eclipse.jdt.core.IMethod.getParameterNames()

Dani
> Even if the interface is compiled with debug information the class
> file does not contain any information on the parameter names. The same
> is true for abstract methods.
> Can anyone tell me how JDT does this or at least point me in the right
> direction (for example class fragment that implements this refactoring
> feature).
>
> cheers
>
> Andy
Previous Topic:How to add a listener to JUnitCore in Eclipse?
Next Topic:Java Templates with Imports
Goto Forum:
  


Current Time: Sun Sep 14 06:42:34 EDT 2025

Powered by FUDForum. Page generated in 0.03557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top