org.apache.bsf.engines.jacl

Class JaclEngine

public class JaclEngine extends BSFEngineImpl

This is the interface to Scriptics's Jacl (Tcl) from the Bean Scripting Framework.

Author: Sanjiva Weerawarana

Method Summary
Objectcall(Object obj, String method, Object[] args)
voiddeclareBean(BSFDeclaredBean bean)
Declare a bean
Objecteval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.
voidinitialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
voidundeclareBean(BSFDeclaredBean bean)
Undeclare a previously declared bean.

Method Detail

call

public Object call(Object obj, String method, Object[] args)

Parameters: method The name of the method to call. args an array of arguments to be passed to the extension, which may be either Vectors of Nodes, or Strings.

declareBean

public void declareBean(BSFDeclaredBean bean)
Declare a bean

eval

public Object eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.

initialize

public void initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.

undeclareBean

public void undeclareBean(BSFDeclaredBean bean)
Undeclare a previously declared bean.