javascript - Generate equivalent Java class from JS with Rhino -


i have working rhino project, several javascript , java files working together. now, compile js java .class files. should create equivalent java class. 1 of js files this.

load ('org/me/somejsclass.js'); importclass(packages.org.me.somejavaclass);  function fruit(n, arr) {     this.name = n;     this.foo = function(bar) {...}; } 

according the answer here, can if first have java interface/abstract class extend from, don't want every js file. there solution without extending, java classes. if not, can java class generated me?


Comments

Popular posts from this blog

Error while updating a record in APEX screen -

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

ios - Xcode 5 "No such file or directory" -