|
Re: Constructing generic objects [message #777117 is a reply to message #777098] |
Mon, 09 January 2012 21:59 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Mike,
No, there's no way to do this. There's no information available at
runtime that would represent it. The same is the case for Java, i.e,
you can call getClass, and perhaps determine it's java.util.List, but
not that it's java.util.List<java.lang.Integer>.
On 09/01/2012 9:53 PM, Michael Spertus wrote:
> I used the sample editor to create some generic classes (after
> enabling "show generics") such Foo<T>. When I use the generated EMF
> editor to create a Foo object, I don't see any way to specify what T
> is. Is there any way to do that (or does type erasure render this moot)?
>
> Thanks,
>
> Mike
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03380 seconds