Skip to main content

Scripting in java

No replies
henry_az
Offline
Joined: 2010-12-27
Points: 0

Hi, About javascript built-in Java1.6. How could I override a method implemented in java class using scripting. like this:

--test.js--

importClass(package.parentClass);

var o=new parentClass(){

methodName:function(){

return null;

}

};

methodName is a protected method defined in package.parentClass.

Is there any similiar methods making it work? your words will be appreiated.

best regards