Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Transforming JDT's type signature (jdt.core.Signature) to equivalent JDK Class
Transforming JDT's type signature (jdt.core.Signature) to equivalent JDK Class [message #201105] Sat, 16 April 2005 16:07
Eclipse UserFriend
Originally posted by: rakabali78.yahoo.com

Hi,

I'm writing a TDD plugin that makes use of JDT and EMF.
In my model I have array of Strings ... they're type of parameters of a
method.
The array is obtained by calling IMethod::getParameterTypes();

To run the model I need to obtain instance of java.lang.reflect.Method.
For that I need to transform those array of Strings to array of
java.lang.Class:
...
Method m = myClazz.getMethod(model.getMethodName(),
SomeUtil.transformFromJDTtoJDK(myModel.getParameterTypes())) ;
m.invoke(...);
...

My question: is there already a utility class (in JDT) that performs such
transformation?

Thanks in advance,
Cokorda Raka (http://www.jroller.com/page/donraka)
Previous Topic:Import/Export preferences gone in 3.1M6?
Next Topic:Maintain Eclipse Environment
Goto Forum:
  


Current Time: Thu Dec 26 17:29:32 GMT 2024

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

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

Back to the top