JClassType[] typeArgs =

     type.getImplementedInterfaces()[0].isParameterized().getTypeArgs();

JClassType elementType = typeArgs[0];


Did you try with getTypeArgs(); ????


2011/6/14 pansen <[email protected]>

> hi,
>
> assuming i'm in a generator and receive a ``JClassType source`` which
> is in that case a ``org.test.Foo<Bar>``.
>
> then ``souce.isGenericType()`` returns ``null``
> but ``source.getParameterizedQualifiedSourceName()`` returns
> "org.test.Foo<Bar>".
> whereas ``source.getSimpleSourceName()`` only returns "Foo"
>
> ...which is a problem for me.
>
> what can i call to see this is a specialization of a generic? e.g.
> something like ``source.base().isGenericType()``.
>
> what can i call to see the specialization of this class - in this case
> i want the result of "Bar".
>
> thx a lot, andi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to