Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » OAW xpt and counters
OAW xpt and counters [message #618083] Mon, 23 June 2008 12:44
Jim is currently offline Jim
Messages: 15
Registered: July 2009
Junior Member
Hello ... I am porting a code generator to OAW from XSLT ...

Is there a way i can store the number of times something meeting some
foreach condition ?

I kinda wanna do something like this below half baked pseudo code:

int count = 0;
«FOREACH //get some list ...
//satisfy some condition
count +=1;
«ENDFOREACH»


Reason being ... is that i need to create an array of objects:

objects * myarray = new objects()[/*num of special objects in model*/]

Cheers,

Jim
Previous Topic:Re: [MOFScript] Problem with metamodel setting in Java integration
Next Topic:[TCS] Is "autoCreate=ifmissing" usable?
Goto Forum:
  


Current Time: Sat Jul 26 15:14:25 EDT 2014

Powered by FUDForum. Page generated in 0.01961 seconds