org.apache.bsf.engines.jacl

Class JaclEngine

Implemented Interfaces:
BSFEngine, PropertyChangeListener

public class JaclEngine
extends BSFEngineImpl

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

Author:
Sanjiva Weerawarana

Field Summary

Fields inherited from class org.apache.bsf.util.BSFEngineImpl

classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir

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.

Methods inherited from class org.apache.bsf.util.BSFEngineImpl

apply, compileApply, compileExpr, compileScript, declareBean, disconnectedDebuggerNotify, exec, getSpecificDebuggingInterface, initialize, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, terminate, undeclareBean

Method Details

call

public Object call(Object obj,
                   String method,
                   Object[] args)
            throws BSFException
Specified by:
call in interface BSFEngine
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
Specified by:
declareBean in interface BSFEngine
Overrides:
declareBean in interface BSFEngineImpl

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.
Specified by:
eval in interface BSFEngine

initialize

public void initialize(BSFManager mgr,
                       String lang,
                       Vector declaredBeans)
            throws BSFException
Initialize the engine.
Specified by:
initialize in interface BSFEngine
Overrides:
initialize in interface BSFEngineImpl

undeclareBean

public void undeclareBean(BSFDeclaredBean bean)
            throws BSFException
Undeclare a previously declared bean.
Specified by:
undeclareBean in interface BSFEngine
Overrides:
undeclareBean in interface BSFEngineImpl