Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Finding parameter types of a method
Finding parameter types of a method [message #254218] Tue, 24 June 2008 16:50 Go to next message
Eclipse UserFriend
I'm trying to determine the input parameter types for a given IMethod.
I expected a method on IMethod like

IType[] getInputParameterTypes()

But all I can find are

String[] getParameterNames()
String[] getParameterTypes()

The later doesn't return the package names. I can programmatically
search for all types using the SearchEngine. But then types like String
resolve to things like

java.lang.String
org.apache.xpath.operations.String
javax.print.DocFlavor$String

Is there an easy way to get the fully-qualified name of a method
input/output parameter?

- Paul
Re: Finding parameter types of a method [message #254536 is a reply to message #254218] Wed, 02 July 2008 13:06 Go to previous message
Eclipse UserFriend
I'm in need of the exact same thing, is this possible ?
Previous Topic:How to search for subclasses of an arbitrary type
Next Topic:Finding types of arguments with MethodInvocation
Goto Forum:
  


Current Time: Sun Jun 15 06:54:14 EDT 2025

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

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

Back to the top