public class JaclEngine extends BSFEngineImpl
classLoader, classPath, declaredBeans, lang, mgr, tempDir| Constructor and Description |
|---|
JaclEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args)
This is used by an application to call into the scripting engine
to make a function/method call.
|
void |
declareBean(BSFDeclaredBean bean)
Declare a bean
|
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object oscript)
This is used by an application to evaluate a string containing
some expression.
|
void |
initialize(BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
Initialize the engine.
|
void |
undeclareBean(BSFDeclaredBean bean)
Undeclare a previously declared bean.
|
apply, compileApply, compileExpr, compileScript, exec, iexec, propertyChange, terminatepublic java.lang.Object call(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args)
throws BSFException
BSFEnginemethod - 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.obj - object on which to make the callBSFException - if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.public void declareBean(BSFDeclaredBean bean) throws BSFException
declareBean in interface BSFEnginedeclareBean in class BSFEngineImplbean - the bean to declareBSFException - if the engine cannot do this operationpublic java.lang.Object eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object oscript)
throws BSFException
source - (context info) the source of this expression
(e.g., filename)lineNo - (context info) the line number in source for exprcolumnNo - (context info) the column number in source for exproscript - the expression to evaluateBSFException - if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.public void initialize(BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans) throws BSFException
initialize in interface BSFEngineinitialize in class BSFEngineImplmgr - The BSFManager that's hosting this engine.lang - Language string which this engine is handling.declaredBeans - Vector of BSFDeclaredObject containing beans
that should be declared into the language runtime at init
time as best as possible.BSFException - if anything goes wrong while init'ing a
BSFException is thrown. The reason indicates the problem.public void undeclareBean(BSFDeclaredBean bean) throws BSFException
undeclareBean in interface BSFEngineundeclareBean in class BSFEngineImplbean - the bean to undeclareBSFException - if the engine cannot do this operation