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

Object
call(Object obj, String method, Object[] args)
void
declareBean(BSFDeclaredBean bean)
Declare a bean
Object
eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.
void
initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
void
undeclareBean(BSFDeclaredBean bean)
Undeclare a previously declared bean.

Method Details

call

public Object call(Object obj,
                   String method,
                   Object[] args)
            throws BSFException
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)
            throws BSFException
Declare a bean

eval

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

initialize

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

undeclareBean

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