Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mozilla . dev . tech . js-engine . rhino
This is a Usenet group - learn more
Find or start a Google Group about rhino.
Group info
Group categories: Not categorized
More group info »
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 751  Older »

Converting AST to javascript source 
  At the moment I'm using the AstRoot.toSource() method to generate my javascript files. But this is really slow for large js files on mobile devices (less memory), because toSource() is using a StringBuilder which holds the complete file. Is there a way to directly stream the js-code to an output file?... more »
By wfloh...@googlemail.com  - Apr 10 - 1 new of 1 message    

JavaScript function invocation in Java Code 
  I pass a function from JavaScript file into Java code. JavaScript function looks like: entity.handler = function(arg1, arg2) { //do something ...In Java code the class implements the Scriptable interface. And when I invoke the JavaScript, actually the following method is invoked in Java:... more »
By s...@developmentontheedge.com  - Mar 13 - 1 new of 1 message    

Issue while Parsing JS files to retrieve JS function names. 
  I am using Rhino 1.7R4 to parse JS files to retrieve function names. Using the following snippet to parse JS file. I have got this code from some of the posts in this group. Reader reader = null; try { String file = "foo.js"; reader = new FileReader(file); AstNode node = new Parser().parse(reader, file, 1);... more »
By sunil kaja  - Feb 25 - 2 new of 2 messages    

About embedding the Rhino parser 
  Dear list, I'm a Rhino newbie and I have some basic questions. I'm sorry if they have already been answered but I've not been able to find them. I'm currently working on a project where we use Javascript as a programming language. We've build our own homemade parser and interpreters as we interpret the scripts in different ways to perform different use cases of... more »
By Iván Párraga García  - Jul 8 2010 - 1 new of 1 message    

Type conversion between Java & Javascript, e.g. Java List to Javascript array 
  Is it possible to configure Rhino to do automatic conversion or wrapping between Java types and Javascript equivalents? In particular, I'd like to use javascript to call a Java method which returns a List. And have that List be mapped to a Javascript array. I understand why this isn't the normal behaviour, but it can be very... more »
By Daniel Winterstein  - Jul 7 2010 - 4 new of 4 messages    

dont you guys have a spam filter? 
 
By Dan Howard  - Jul 6 2010 - 4 new of 4 messages    

Find out how many parameters a function has 
  Is there a way to find out how many parameters are in a JS function? I can get access to the InterpretedFunction object representing the function, but I have no idea how to use it. The source code is vague, and the JavaDoc doesn't even exist! Thanks
By Lord.Quackstar  - Jul 4 2010 - 1 new of 1 message    

Issue with XML.replace in E4X implementation? 
  Hi, I think there is a bug in the E4X implementation XML.replace function: Rhino 1.7 release 2 2009 03 22 js> <xml><one/><br/><two/><br/><th ree/><br/></xml>.replace('br', '') <xml> <one/> <br/> <two/> <three/> </xml> js> AFAIK the code should remove all the <br/> nodes, but the first one remains. I also tested in FF3.6 and there the <br/> nodes are properly... more »
By P  - Jul 2 2010 - 1 new of 1 message    

Eclipse integration & Classloader 
  Hi all, I am experimenting with a rhino powered JavaScript shell for Eclipse 3.6. It was quite easy to get it running for pure JavaScript code. Now I am facing problems when I try to access Java classes through the LiveConnect feature. Accessing "Packages.something..." works only for Java classes of the JRE... more »
By Christian Pontesegger  - Jun 30 2010 - 2 new of 2 messages    

How do I use the latest Rhino engine rather than the one distributed by Sun JRE? 
  I'd like to use the latest Rhino engine rather than the one distributed by Sun in rt.jar. I cannot find any documentation as to how to do this, so any help would be appreciated.
By Gerald McNulty  - Jun 28 2010 - 2 new of 2 messages    

1 - 10 of 751   « Newer | Older »

XML