How to find the type parameters for a given superclass in the hierarchy [message #530719] |
Fri, 30 April 2010 11:44  |
Eclipse User |
|
|
|
Hello,
Let me explain my current problem with the following exemple :
I have the following type
JAXBElementProvider extends AbstractJAXBProvider<JAXBElement<*>>
where
AbstractJAXBProvider<T> extends AbstractEntityProvider<T>
and
AbstractEntityProvider<T> implements MessageBodyReader<T>, MessageBodyWriter<T>
What I need to find from the folowing type hierarchy is that my JAXBElementProvider implements the MessageBodyReader interface with the type JAXBElement<*>
Using the IType and Signature methods, I can find the superclass/superinterfaces, extract the type arguments /type parameters, but before going into some quite complex code, I'd like to know if there's already some utility method that would return the "JAXBElement<*>" type through this hierarchy of classes/interfaces.
By the way : I don't get the difference between "type parameters", "type arguments" and "inferred types". Can anyone explain ?
Thank you in advance.
Regards,
/Xavier
|
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds