org.apache.bsf.engines.javaclass
Class JavaClassEngine
public
class
JavaClassEngine
extends BSFEngineImpl
This is the interface to scripts consisting of Java objects from the
Bean Scripting Framework.
Author: Sanjiva Weerawarana
Method Summary |
Object | call(Object object, String method, Object[] args)
call the named method of the given object. |
Object | eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate an object containing
some expression - clearly not possible for compiled code .. |
public Object call(Object object, String method, Object[] args)
call the named method of the given object. If object is an instance
of Class, then the call is a static call on that object. If not, its
an instance method call or a static call (as per Java) on the given
object.
public Object eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate an object containing
some expression - clearly not possible for compiled code ..