Test cases can be found here:
http://code.google.com/p/remoteobjects/source/browse/#svn/trunk/rof-generator/src/test/java/com/evaserver/rof/generator
Cheers
Max
One of the big things in RemoteObjects is the OO JavaScript. It
supports the "class", "extends" and "super" keywords as well as
"import" in the same way as Java does. This notation then gets
translated into a compatible way of defining "classes" in JavaScript.
So far, it was generating code that required my own JS Library. This
changed in the meantime and you can specify a delegate for the Script
Parser that translates it. The default implementation provided
generates pure JavaScript which does not use any Library.
Then, there is a delegate implementation for my own ROF Library and
*tadaah* one for ExtJS.
The idea behind the generator is, that you can configure the delegate
to use, run it on a directory with JavaScript files and it outputs
"real" JavaScript. Furthermore, you can then use "import" statements
and it generates one big JS file out of your modular OO JS files with
everything in the right order.
Two things missing so far are an Ant Task and a Maven2 Plugin.
On 25 Jan., 20:47, Max <maximilian.ant...@googlemail.com> wrote:
> The idea of a code generator has been realized and will be in the next
> release of the ROF.http://groups.google.de/group/remoteobjects/web/oo-code-generator
>
> Test cases can be found here:http://code.google.com/p/remoteobjects/source/browse/#svn/trunk/rof-g...
>
> Cheers
> Max