Ecore to JvmTypes mapping [message #699830] |
Fri, 22 July 2011 07:44  |
Eclipse User |
|
|
|
Originally posted by:
Hi,
I'm still working on inferring a Jvm model for an Ecore model and have
come to EDataTypes. I use an injected TypeReferences object to get
references to the JvmDeclaredType corresponding to the EDataType's
instanceClassName. However, the getTypeForName method takes a class name
and its parameters as its arguments, hence, I must parse parameterized
types like java.util.List<java.lang.String> myself. I'm sure there is a
method somewhere that already does this, but where?
Hallvard
|
|
|
|
|
|
Re: Ecore to JvmTypes mapping [message #700668 is a reply to message #700508] |
Sat, 23 July 2011 17:13  |
Eclipse User |
|
|
|
Originally posted by:
On 23.07.11 17.03, Ed Merks wrote:
>
> I think it does exactly what you'd need, i.e., it creates the full
> structure that you can navigate. EDataType instances are created to
> represent the qualified names.
You mean traverse this Ecore structure and create the corresponding Jvm
structure? That should be simpler than parsing manually, if the
structures are isomorphic (which they should, since they represent the
same thing).
Hallvard
|
|
|
Powered by
FUDForum. Page generated in 0.03242 seconds