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
Post a Comment