public class fakeEngine extends BSFEngineImpl
classLoader, classPath, declaredBeans, lang, mgr, tempDir
Constructor and Description |
---|
fakeEngine() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.Object object,
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.
|
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object expr)
This is used by an application to evaluate an expression.
|
void |
exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Default impl of execute - calls eval and ignores the result.
|
void |
iexec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Default impl of interactive execution - calls eval and ignores the result.
|
void |
terminate()
Graceful termination
|
apply, compileApply, compileExpr, compileScript, declareBean, initialize, propertyChange, undeclareBean
public java.lang.Object call(java.lang.Object object, java.lang.String method, java.lang.Object[] args) throws BSFException
BSFEngine
object
- object on which to make the callmethod
- name of the method / procedure to callargs
- the arguments to be given to the procedureBSFException
- if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.public java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object expr) throws BSFException
BSFEngine
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 exprexpr
- the expression to evaluateBSFException
- if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.public void iexec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws BSFException
BSFEngineImpl
iexec
in interface BSFEngine
iexec
in class BSFEngineImpl
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 exprscript
- the script to executeBSFException
- if anything goes wrong while exec'ing a
BSFException is thrown. The reason indicates the problem.public void exec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws BSFException
BSFEngineImpl
exec
in interface BSFEngine
exec
in class BSFEngineImpl
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 exprscript
- the script to executeBSFException
- if anything goes wrong while exec'ing a
BSFException is thrown. The reason indicates the problem.public void terminate()
BSFEngine
terminate
in interface BSFEngine
terminate
in class BSFEngineImpl