| 
| Transforming JDT's type signature (jdt.core.Signature) to equivalent JDK Class [message #201105] | Sat, 16 April 2005 12:07 |  | 
| Eclipse User  |  |  |  |  | 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)
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.08131 seconds