i think it is better if you describe your next goal why you need this.
i think you run on a wrong way ...
On 21 Aug., 18:45, Mark Renouf <[EMAIL PROTECTED]> wrote:
> Hi... I'm having some trouble getting the type parameters declared for
> a field with generic type.
>
> Example:
>
> public class Foo {
> private List<String> field;
>
> }
>
> I need a reference to the base type, and the parameter's type to
> generate some code.
>
> I can get the base type using field.getType().getErasedType(), which
> returns a JClassType for the interface java.util.List.
>
> But when I try to retrieve the generic type, I get nothing.
>
> field.getType().isGenericType() returns null.
>
> I was expecting to get a JGenericType, from which I can use get
> getTypeParameters()
>
> Any hints?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---