Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Creating typrefs for bounded wildcards
Creating typrefs for bounded wildcards [message #901356] Sat, 11 August 2012 11:21 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi all,

using ctxd.newTypeRef("org.eclipse.emf.common.util.EList",ctxd.newTypeRef("org.eclipse.emf.ecore.EObject"))
I can create a referenct to Elist<EObject>. How do I create a reference to EList<? extends EObject> ?

Regards,

Andreas
Re: Creating typrefs for bounded wildcards [message #901360 is a reply to message #901356] Sat, 11 August 2012 12:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Hi,

have a look at org.eclipse.xtext.common.types.util.TypeReferences.wildCardExtends(JvmTypeReference)

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Creating typrefs for bounded wildcards [message #901525 is a reply to message #901360] Mon, 13 August 2012 08:48 Go to previous message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Thanks
Previous Topic:rule ruleIfstatement has non-LL(*) decision due to recursive rule invocations
Next Topic:xbase2 - formatting line breaks
Goto Forum:
  


Current Time: Thu Dec 03 01:59:13 GMT 2020

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

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

Back to the top