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

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -

java - How to specify maven bin in eclipse maven plugin? -