Rhino: How to get all properties from ScriptableObject?

Posted by Dyatlov Vitaly on Stack Overflow See other posts from Stack Overflow or by Dyatlov Vitaly
Published on 2010-04-01T09:42:43Z Indexed on 2010/04/01 10:23 UTC
Read the original article Hit count: 440

Filed under:
|
|
|
|

Hi guys. I am using a Javascript object as an object with configuration properties. E.g. I have this object in javascript:

var myProps = {prop1: 'prop1', prop2: 'prop2', 'prop3': 'prop3'};

This object (NativeObject) is returned to me in Java function. E.g.

public Static void jsStaticFunction_test(NativeObject obj) {
    //work with object here
}

I want to get all properties from object and build HashMap from it.

Any help will be appreciated.

© Stack Overflow or respective owner

Related posts about rhino

Related posts about java