Skip to main content



      Home
Home » Modeling » TMF (Xtext) » JvmTypeReference performance proxy resolution
JvmTypeReference performance proxy resolution [message #1752874] Mon, 30 January 2017 03:17 Go to next message
Eclipse UserFriend
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 03:23 Go to previous messageGo to next message
Eclipse UserFriend
do you know the name of ref.type?
if yes you could use something like

typeRef(List,name.typeRef)
Re: JvmTypeReference performance proxy resolution [message #1752884 is a reply to message #1752876] Mon, 30 January 2017 05:46 Go to previous messageGo to next message
Eclipse UserFriend
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 07:16 Go to previous message
Eclipse UserFriend
at least it should not be called upfront.
and no it needs to be the qualified name
Previous Topic:Formatting after external EMF change
Next Topic:emfcompare and 'outline view' for DSL's defined using xtext
Goto Forum:
  


Current Time: Tue Jul 15 00:13:14 EDT 2025

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

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

Back to the top