apply
public Object apply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments)
throws BSFException
Default impl of apply - calls eval ignorning parameters and returns
the result.
- apply in interface BSFEngine
compileApply
public void compileApply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments,
CodeBuffer cb)
throws BSFException
Default impl of compileApply - calls compileExpr ignorning parameters.
- compileApply in interface BSFEngine
compileExpr
public void compileExpr(String source,
int lineNo,
int columnNo,
Object expr,
CodeBuffer cb)
throws BSFException
Default impl of compileExpr - generates code that'll create a new
manager, evaluate the expression, and return the value.
- compileExpr in interface BSFEngine
compileScript
public void compileScript(String source,
int lineNo,
int columnNo,
Object script,
CodeBuffer cb)
throws BSFException
Default impl of compileScript - generates code that'll create a new
manager, and execute the script.
- compileScript in interface BSFEngine
disconnectedDebuggerNotify
public void disconnectedDebuggerNotify()
Basic engines are not supporting breakpoints for the meaning
and support is something that is language-specific.
- disconnectedDebuggerNotify in interface BSFEngine
exec
public void exec(String source,
int lineNo,
int columnNo,
Object script)
throws BSFException
Default impl of execute - calls eval and ignores the result.
- exec in interface BSFEngine
getSpecificDebuggingInterface
public Object getSpecificDebuggingInterface()
By default, an engine does not support debugging.
Subclasses will need to redefine this method in order
to provide debuggers with their language-specific
interface for debugging.
- getSpecificDebuggingInterface in interface BSFEngine
initialize
public void initialize(BSFManager mgr,
String lang,
Vector declaredBeans)
throws BSFException
initialize the engine; called right after construction by
the manager. Declared beans are simply kept in a vector and
that's it. Subclasses must do whatever they want with it.
- initialize in interface BSFEngine
propertyChange
public void propertyChange(PropertyChangeEvent e)
Receive property change events from the manager and update my fields
as needed.
e
- PropertyChange event with the change data