Uses of Class org.apache.bsf.BSFException

Uses in package org.apache.bsf.engines.xslt

Methods which throw type org.apache.bsf.BSFException

Object
XSLTEngine.call(Object object, String method, Object[] args)
call the named method of the given object.
void
Declare a bean by setting it as a parameter
Object
XSLTEngine.eval(String source, int lineNo, int columnNo, Object oscript)
Evaluate an expression.
void
XSLTEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
void
Undeclare a bean by setting he parameter represeting it to null

Uses in package org.apache.bsf.util

Methods which throw type org.apache.bsf.BSFException

void
BSFFunctions.addEventListener(Object src, String eventSetName, String filter, Object script)
void
EngineUtils.addEventListener(Object bean, String eventSetName, String filter, BSFEngine engine, BSFManager manager, String source, int lineNo, int columnNo, Object script)
Add a script as a listener to some event coming out of an object.
Object
BSFEngineImpl.apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)
Default impl of apply - calls eval ignorning parameters and returns the result.
Object
EngineUtils.callBeanMethod(Object bean, String methodName, Object[] args)
Finds and invokes a method with the given signature on the given bean.
void
BSFEngineImpl.compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb)
Default impl of compileApply - calls compileExpr ignorning parameters.
void
BSFEngineImpl.compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb)
Default impl of compileExpr - generates code that'll create a new manager, evaluate the expression, and return the value.
void
BSFEngineImpl.compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)
Default impl of compileScript - generates code that'll create a new manager, and execute the script.
Object
EngineUtils.createBean(String className, args[] )
Creates a new bean.
void
void
BSFEngineImpl.exec(String source, int lineNo, int columnNo, Object script)
Default impl of execute - calls eval and ignores the result.
void
BSFEngineImpl.initialize(BSFManager mgr, String lang, Vector declaredBeans)
initialize the engine; called right after construction by the manager.
Class
EngineUtils.loadClass(BSFManager mgr, String name)
Load a class using the class loader of given manager.
void
BSFEngineImpl.placeBreakpointAtLine(int brkptid, String docname, int lineno)
void
BSFEngineImpl.placeBreakpointAtOffset(int brkptid, String docname, int offset)
void
BSFEngineImpl.removeBreakpoint(String docname, int brkptid)
void
BSFEngineImpl.setEntryExit(String docname, boolean on)
void

Uses in package org.apache.bsf.engines.jpython

Methods which throw type org.apache.bsf.BSFException

Object
JPythonEngine.call(Object object, String method, Object[] args)
call the named method of the given object.
void
Declare a bean
Object
JPythonEngine.eval(String source, int lineNo, int columnNo, Object script)
Evaluate an expression.
void
JPythonEngine.exec(String source, int lineNo, int columnNo, Object script)
Execute a script.
void
JPythonEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
void
Undeclare a previously declared bean.

Uses in package org.apache.bsf.engines.jython

Methods which throw type org.apache.bsf.BSFException

Object
JythonEngine.call(Object object, String method, Object[] args)
call the named method of the given object.
void
Declare a bean
Object
JythonEngine.eval(String source, int lineNo, int columnNo, Object script)
Evaluate an expression.
void
JythonEngine.exec(String source, int lineNo, int columnNo, Object script)
Execute a script.
void
JythonEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
void
Undeclare a previously declared bean.

Uses in package org.apache.bsf.engines.javaclass

Methods which throw type org.apache.bsf.BSFException

Object
JavaClassEngine.call(Object object, String method, Object[] args)
call the named method of the given object.
Object
JavaClassEngine.eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate an object containing some expression - clearly not possible for compiled code ..

Uses in package org.apache.bsf.engines.jacl

Methods which throw type org.apache.bsf.BSFException

Object
JaclEngine.call(Object obj, String method, Object[] args)
void
Declare a bean
Object
JaclEngine.eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.
void
JaclEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
Initialize the engine.
void
Undeclare a previously declared bean.

Uses in package org.apache.bsf.engines.activescript

Methods which throw type org.apache.bsf.BSFException

void
ActiveScriptEngine.addEventListener(Object bean, String event, String filter, String script)
add an event listener
void
JavaBeanAddEventListener.addEventListener(Object bean, String name, String eventFilter, String eventText)
Object
ActiveScriptEngine.call(Object object, String method, Object[] args)
Return an object from an extension.
Object
createBean
void
Declare a bean after the engine has been started.
Object
ActiveScriptEngine.eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.
void
ActiveScriptEngine.exec(String source, int lineNo, int columnNo, Object script)
This is used by an application to execute a string containing a script to execute.
byte[]
void
ActiveScriptEngine.initialize(BSFManager mgr, String language, Vector declaredBeans)
initialize the engine; called right after construction by the manager.
void
Undeclare a previously declared bean.

Uses in package org.apache.bsf.engines.javascript

Methods which throw type org.apache.bsf.BSFException

Object
JavaScriptEngine.call(Object object, String method, Object[] args)
Return an object from an extension.
void
FnOrScript.compile(Context cx, Scriptable global)
void
Object
JavaScriptEngine.eval(String source, int lineNo, int columnNo, Object oscript)
This is used by an application to evaluate a string containing some expression.
BreakPoint
BreakPoint
BreakPoint
BreakPoint
int
int
int
int
int
int
int
void
JavaScriptEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
initialize the engine.
void
JavaScriptEngine.placeBreakpointAtLine(int brkptid, String docname, int lineno)
void
JavaScriptEngine.placeBreakpointAtOffset(int brkptid, String docname, int offset)
FnOrScript
DocumentCell.registerFnOrScriptLines(Reader reader, int startLine, int column)
FnOrScript
DocumentCell.registerFnOrScriptLines(String source, int startLine, int column)
FnOrScript
DocumentCell.registerFnOrScriptRange(Reader reader, int offset)
FnOrScript
DocumentCell.registerFnOrScriptRange(String source, int offset)
void
JavaScriptEngine.removeBreakpoint(String docname, int brkptid)
void
RhinoEngineDebugger.removeBreakpoint(String docname, int brkptid)
void
JavaScriptEngine.setEntryExit(String docname, boolean on)
void
RhinoEngineDebugger.setEntryExit(String docname, boolean on)
void
FnOrScript.specifyLinesPos(Reader reader, int startLine, int column)
void
FnOrScript.specifyRange(Reader reader, int offset)
void

Uses in package org.apache.bsf

Methods which throw type org.apache.bsf.BSFException

Object
BSFManager.apply(String lang, String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)
Apply the given anonymous function of the given language to the given parameters and return the resulting value.
Object
BSFEngine.apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)
This is used by an application to invoke an anonymous function.
Object
BSFEngine.call(Object object, String name, Object[] args)
This is used by an application to call into the scripting engine to make a function/method call.
void
BSFManager.compileApply(String lang, String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, 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.compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb)
This is used by an application to compile an anonymous function.
void
BSFManager.compileExpr(String lang, String source, int lineNo, int columnNo, Object expr, CodeBuffer cb)
Compile the given expression of the given language into the given CodeBuffer.
void
BSFEngine.compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb)
This is used by an application to compile a value-returning expression.
void
BSFManager.compileScript(String lang, String source, int lineNo, int columnNo, Object script, CodeBuffer cb)
Compile the given script of the given language into the given CodeBuffer.
void
BSFEngine.compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)
This is used by an application to compile some script.
void
BSFManager.declareBean(String beanName, Object bean, Class type)
Declare a bean.
void
Declare a bean after the engine has been started.
Object
BSFManager.eval(String lang, String source, int lineNo, int columnNo, Object expr)
Evaluate the given expression of the given language and return the resulting value.
Object
BSFEngine.eval(String source, int lineNo, int columnNo, Object expr)
This is used by an application to evaluate an expression.
void
BSFManager.exec(String lang, String source, int lineNo, int columnNo, Object script)
Execute the given script of the given language.
void
BSFEngine.exec(String source, int lineNo, int columnNo, Object script)
This is used by an application to execute some script.
String
Determine the language of a script file by looking at the file extension.
void
BSFEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
This method is used to initialize the engine right after construction.
BSFEngine
Load a scripting engine based on the lang string identifying it.
void
BSFEngine.placeBreakpointAtLine(int brkptid, String docname, int lineno)
void
BSFEngine.placeBreakpointAtOffset(int brkptid, String docname, int offset)
void
BSFEngine.removeBreakpoint(String docname, int brkptid)
void
BSFEngine.setEntryExit(String docname, boolean on)
void
BSFManager.undeclareBean(String beanName)
Undeclare a previously declared bean.
void
Undeclare a previously declared bean.

Uses in package org.apache.bsf.engines.netrexx

Methods which throw type org.apache.bsf.BSFException

Object
NetRexxEngine.call(Object object, String method, Object[] args)
Return an object from an extension.
void
Object
NetRexxEngine.eval(String source, int lineNo, int columnNo, Object script)
Override impl of execute.
void
NetRexxEngine.exec(String source, int lineNo, int columnNo, Object script)
Override impl of execute.
Object
NetRexxEngine.execEvalShared(String source, int lineNo, int columnNo, Object oscript, boolean returnsObject)
This is shared code for the exec() and eval() operations.
void
NetRexxEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans)
initialize the engine; called right after construction by the manager.
void