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: 14665
Registered: July 2009
Senior Member
Hi,

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

~Christian


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: Tue Apr 23 06:59:46 GMT 2024

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

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

Back to the top