Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JvmTypeReference performance proxy resolution
JvmTypeReference performance proxy resolution [message #1752874] Mon, 30 January 2017 08:17 Go to next message
Didier Didos is currently offline Didier DidosFriend
Messages: 10
Registered: April 2016
Junior Member
Hello,

I'm trying to improve performance of my dsl, and I have a question.

I want to create a field a class using toField method, my input is an JvmTypeReference as usual.
I want to "convert" this JvmTypeReference to an java collection type of that JvmTypeReference.

In my case, JvmTypeReference is an proxy to another type define in my dsl language, and using "typeRef(List, ref.type)", it resolve the proxy each time.

Is it possible to not resolve proxy in that case?

Re: JvmTypeReference performance proxy resolution [message #1752876 is a reply to message #1752874] Mon, 30 January 2017 08:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11269
Registered: July 2009
Senior Member
do you know the name of ref.type?
if yes you could use something like

typeRef(List,name.typeRef)


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: JvmTypeReference performance proxy resolution [message #1752884 is a reply to message #1752876] Mon, 30 January 2017 10:46 Go to previous messageGo to next message
Didier Didos is currently offline Didier DidosFriend
Messages: 10
Registered: April 2016
Junior Member
Thanks Chistian,

With name, not sure to fully understance, is it JvmTypeReference.getSimpleName or fullyQualifiedName for instance?
it will not call proxy resolution by doing fullyQualifiedName ?
Re: JvmTypeReference performance proxy resolution [message #1752897 is a reply to message #1752884] Mon, 30 January 2017 12:16 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11269
Registered: July 2009
Senior Member
at least it should not be called upfront.
and no it needs to be the qualified name


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Previous Topic:Formatting after external EMF change
Next Topic:Problem using XtextServlet in SpringBoot Application
Goto Forum:
  


Current Time: Tue Oct 17 00:47:02 GMT 2017

Powered by FUDForum. Page generated in 0.02869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software