Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Fully qualified parameter type names for method signature
Fully qualified parameter type names for method signature [message #152198] Sun, 04 April 2004 10:02 Go to next message
Eclipse UserFriend
Originally posted by: sangamon.t-online.de

Hi,

first post from a JDT newbie, please don't be too harsh if the answer is
obvious.

What would be the best way to retrieve fully qualified parameter type
names starting from an IMethod instance?

TIA,
Patrick
Re: Fully qualified parameter type names for method signature [message #152201 is a reply to message #152198] Sun, 04 April 2004 11:09 Go to previous message
Eclipse UserFriend
Originally posted by: sangamon.t-online.de

I wrote:

> What would be the best way to retrieve fully qualified parameter type
> names starting from an IMethod instance?

At least I've found a 'brute force' method now. Using the (deprecated)
AST.parse... I retrieve a CompilationUnit for the IMethod's
ICompilationUnit, use this to find the corresponding MethodDeclaration
with some code I've shamelessly c&p'ed from a posting by Konstantin
Scheglov in this group, then retrieve its parameter type bindings and
finally their qualified names. This looks overly complex and is
impressively slow, so I doubt this is the way to go. Any better advice?

TIA,
Patrick
Previous Topic:Run / Debug Settings per project
Next Topic:Quick Fix hooks in editor
Goto Forum:
  


Current Time: Tue Jun 24 19:35:04 EDT 2025

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

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

Back to the top