On Apr 14, 6:18 pm, Priyank Raj <[email protected]> wrote:
> Hi,
> I'm new to Rhino and I've studied the documentation and searched the
> list for the issue I have.I'm not sure if this kind of question has been
> dealt with someone.
>
> Using Rhino, I'm trying to convert a simple javascript file which
> compiles and executes into an object and then maybe convert it into a
> XML file that can be used as a signature of the javascript.
>
> First using the JavaScript compiler I generated the class file, but for
> some problem with disassemblers I cannot see the java source file(I'm
> using Java, so I guess generating any XML too is ruled out.
>
> I'll look deeper into serialization documentation of Rhino, but if
> anybody has any idea how I could generate or get access to the
> javascript global variables and javascript functions declared in the
> javascript file, it'd be helpful.
>
> Thanks,
> Priyank

Hi Priyank,
I'm not sure what you're trying to do, but you will probably find it
easier to deal with the JavaScript runtime objects created by your
script, and to serialize them at runtime than to deal with the
compiler. You can get a list of the global variables defined in your
scope by calling scope.getIds()

HTH<
A
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to