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
Objectcall(Object object, String method, Object[] args)
call the named method of the given object.
Objecteval(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 ..

Method Detail

call

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.

eval

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 ..