java.lang.Object |
BSFEngine.apply(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments) |
This is used by an application to invoke an anonymous function.
|
java.lang.Object |
BSFManager.apply(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments) |
Apply the given anonymous function of the given language to the given
parameters and return the resulting value.
|
java.lang.Object |
BSFEngine.call(java.lang.Object object,
java.lang.String name,
java.lang.Object[] args) |
This is used by an application to call into the scripting engine
to make a function/method call.
|
void |
BSFEngine.compileApply(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments,
CodeBuffer cb) |
This is used by an application to compile an anonymous function.
|
void |
BSFManager.compileApply(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object funcBody,
java.util.Vector paramNames,
java.util.Vector arguments,
CodeBuffer cb) |
Compile the application of the given anonymous function of the given
language to the given parameters into the given CodeBuffer.
|
void |
BSFEngine.compileExpr(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object expr,
CodeBuffer cb) |
This is used by an application to compile a value-returning expression.
|
void |
BSFManager.compileExpr(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object expr,
CodeBuffer cb) |
Compile the given expression of the given language into the given
CodeBuffer.
|
void |
BSFEngine.compileScript(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script,
CodeBuffer cb) |
This is used by an application to compile some script.
|
void |
BSFManager.compileScript(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script,
CodeBuffer cb) |
Compile the given script of the given language into the given
CodeBuffer.
|
void |
BSFEngine.declareBean(BSFDeclaredBean bean) |
Declare a bean after the engine has been started.
|
void |
BSFManager.declareBean(java.lang.String beanName,
java.lang.Object bean,
java.lang.Class type) |
Declare a bean.
|
java.lang.Object |
BSFEngine.eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object expr) |
This is used by an application to evaluate an expression.
|
java.lang.Object |
BSFManager.eval(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object expr) |
Evaluate the given expression of the given language and return the
resulting value.
|
void |
BSFEngine.exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script) |
This is used by an application to execute some script.
|
void |
BSFManager.exec(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script) |
Execute the given script of the given language.
|
static java.lang.String |
BSFManager.getLangFromFilename(java.lang.String fileName) |
Determine the language of a script file by looking at the file
extension.
|
void |
BSFEngine.iexec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script) |
This is used by an application to execute some script, as though
one were interacting with the language in an interactive session.
|
void |
BSFManager.iexec(java.lang.String lang,
java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script) |
Execute the given script of the given language, attempting to
emulate an interactive session w/ the language.
|
void |
BSFEngine.initialize(BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans) |
This method is used to initialize the engine right after construction.
|
BSFEngine |
BSFManager.loadScriptingEngine(java.lang.String lang) |
Load a scripting engine based on the lang string identifying it.
|
void |
BSFEngine.undeclareBean(BSFDeclaredBean bean) |
Undeclare a previously declared bean.
|
void |
BSFManager.undeclareBean(java.lang.String beanName) |
Undeclare a previously declared bean.
|