distinguish java string from javascript string

50 views
Skip to first unread message

Christian Pontesegger

unread,
Dec 5, 2017, 2:47:51 AM12/5/17
to mozilla-rhino

Hi,

 

I am implementing Rhino interpreter support  for Eclipse. While displaying variables of a running I would like to distinguish between the string representations of Java and JavaScript.

Now when enumerating the properties of a org.mozilla.javascript.Scriptable, the get() method always returns a Java String object, even if a javascript string was defined in the script code. Is there any possibility to find out the real representation in the script engine?


As string types between Java and JavaScript are different, code completion and help hovers would need the correct type information to work properly.

 

Thanks

Christian

Raimund Jacob-Blödorn

unread,
Dec 5, 2017, 5:50:13 AM12/5/17
to mozilla-rhino
Hey!

Unfortunately, I cannot help with this Request. The String vs NativeString thing is very strange beast, on a day-to-day basis.

But: I am very interested in that Rhino-in-Eclipse project of yours :-) We are using Rhino as extension language for one of our projects and would very much like to debug it in Eclipse.

Can you share a link? Thanks,
   Raimund

Christian Pontesegger

unread,
Dec 5, 2017, 11:37:06 AM12/5/17
to mozilla-rhino
sure, the Eclipse project is called EASE:
http://www.eclipse.org/ease
Reply all
Reply to author
Forward
0 new messages