Uses of Class
org.apache.bsf.BSFException
Packages that use BSFException
Package
Description
-
Uses of BSFException in org.apache.bsf
Methods in org.apache.bsf that throw BSFExceptionModifier and TypeMethodDescriptionBSFEngine.apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) This is used by an application to invoke an anonymous function.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.This is used by an application to call into the scripting engine to make a function/method call.voidBSFEngine.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.voidBSFManager.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.voidBSFEngine.compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb) This is used by an application to compile a value-returning expression.voidBSFManager.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.voidBSFEngine.compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb) This is used by an application to compile some script.voidBSFManager.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.voidBSFEngine.declareBean(BSFDeclaredBean bean) Declare a bean after the engine has been started.voidBSFManager.declareBean(String beanName, Object bean, Class type) Declare a bean.This is used by an application to evaluate an expression.Evaluate the given expression of the given language and return the resulting value.voidThis is used by an application to execute some script.voidExecute the given script of the given language.static StringBSFManager.getLangFromFilename(String fileName) Determine the language of a script file by looking at the file extension.voidThis is used by an application to execute some script, as though one were interacting with the language in an interactive session.voidExecute the given script of the given language, attempting to emulate an interactive session w/ the language.voidBSFEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans) This method is used to initialize the engine right after construction.BSFManager.loadScriptingEngine(String lang) Load a scripting engine based on the lang string identifying it.voidBSFEngine.undeclareBean(BSFDeclaredBean bean) Undeclare a previously declared bean.voidBSFManager.undeclareBean(String beanName) Undeclare a previously declared bean. -
Uses of BSFException in org.apache.bsf.engines.javascript
Methods in org.apache.bsf.engines.javascript that throw BSFExceptionModifier and TypeMethodDescriptionReturn an object from an extension.voidJavaScriptEngine.declareBean(BSFDeclaredBean bean) This is used by an application to evaluate a string containing some expression.voidJavaScriptEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine.voidJavaScriptEngine.undeclareBean(BSFDeclaredBean bean) -
Uses of BSFException in org.apache.bsf.engines.xslt
Methods in org.apache.bsf.engines.xslt that throw BSFExceptionModifier and TypeMethodDescriptioncall the named method of the given object.voidXSLTEngine.declareBean(BSFDeclaredBean bean) Declare a bean by setting it as a parameterEvaluate an expression.voidXSLTEngine.initialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine.voidXSLTEngine.undeclareBean(BSFDeclaredBean bean) Undeclare a bean by setting he parameter represeting it to null -
Uses of BSFException in org.apache.bsf.util
Methods in org.apache.bsf.util that throw BSFExceptionModifier and TypeMethodDescriptionvoidBSFFunctions.addEventListener(Object src, String eventSetName, String filter, Object script) static voidEngineUtils.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.static voidEngineUtils.addEventListenerReturningEventInfos(Object bean, String eventSetName, String filter, BSFEngine engine, BSFManager manager, String source, int lineNo, int columnNo, Object script, Object dataFromScriptingEngine) Add a script as a listener to some event coming out of an object.BSFEngineImpl.apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) Default impl of apply - calls eval ignoring parameters and returns the result.static ObjectEngineUtils.callBeanMethod(Object bean, String methodName, Object[] args) Finds and invokes a method with the given signature on the given bean.voidBSFEngineImpl.compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb) Default impl of compileApply - calls compileExpr ignoring parameters.voidBSFEngineImpl.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.voidBSFEngineImpl.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.static ObjectEngineUtils.createBean(String className, Object[] args) Creates a new bean.voidBSFEngineImpl.declareBean(BSFDeclaredBean bean) voidDefault impl of execute - calls eval and ignores the result.voidDefault impl of interactive execution - calls eval and ignores the result.voidBSFEngineImpl.initialize(BSFManager mgr, String lang, Vector declaredBeans) initialize the engine; called right after construction by the manager.static ClassEngineUtils.loadClass(BSFManager mgr, String name) Load a class using the class loader of given manager.voidBSFEngineImpl.undeclareBean(BSFDeclaredBean bean)