Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to heck if token is present
How to heck if token is present [message #904605] Tue, 28 August 2012 16:01 Go to next message
Eclipse UserFriend
Property:
	name=ValidID ':' type=JvmTypeReference ('NotNull')? (columnName=ValidID)?
;


Getting name and columnName is trivial. But how do I check if Property contains a NotNull token. I tried to access the eContents and eContainer.eContents. But I can only find name and columnName there:

val p = f as Property

for (c : p.eContainer.eContents) {
println(c)
}


Regards
Roger

[Updated on: Tue, 28 August 2012 16:01] by Moderator

Re: How to heck if token is present [message #904608 is a reply to message #904605] Tue, 28 August 2012 16:13 Go to previous message
Eclipse UserFriend
You have to change the grammar

(notNull?='NotNull')?
Previous Topic:Implementing dynamic keywords
Next Topic:EMF Model Update Strategy
Goto Forum:
  


Current Time: Sat Jul 05 07:20:58 EDT 2025

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

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

Back to the top