# Uses of Class
org.apache.bsf.BSFException

Packages that use BSFException
Package
Description
org.apache.bsf
org.apache.bsf.engines.jacl
org.apache.bsf.engines.java
org.apache.bsf.engines.javaclass
org.apache.bsf.engines.javascript
org.apache.bsf.engines.jython
org.apache.bsf.engines.netrexx
org.apache.bsf.engines.xslt
org.apache.bsf.test
org.apache.bsf.test.utilTests
org.apache.bsf.util

- ## Uses of BSFException in org.apache.bsf

  Methods in org.apache.bsf that throw BSFException
  Modifier and Type
  Method
  Description
  `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`
  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.`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`
  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.`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.`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.`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.`compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)`
  This is used by an application to compile some script.
  `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.`declareBean(BSFDeclaredBean bean)`
  Declare a bean after the engine has been started.
  `void`
  BSFManager.`declareBean(String beanName, Object bean, Class type)`
  Declare a bean.
  `Object`
  BSFEngine.`eval(String source, int lineNo, int columnNo, Object expr)`
  This is used by an application to evaluate an expression.
  `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.
  `void`
  BSFEngine.`exec(String source, int lineNo, int columnNo, Object script)`
  This is used by an application to execute some script.
  `void`
  BSFManager.`exec(String lang, String source, int lineNo, int columnNo, Object script)`
  Execute the given script of the given language.
  `static String`
  BSFManager.`getLangFromFilename(String fileName)`
  Determine the language of a script file by looking at the file extension.
  `void`
  BSFEngine.`iexec(String source, int lineNo, int columnNo, 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(String lang, String source, int lineNo, int columnNo, Object script)`
  Execute the given script of the given language, attempting to emulate an interactive session w/ the language.
  `void`
  BSFEngine.`initialize(BSFManager mgr, String lang, Vector declaredBeans)`
  This method is used to initialize the engine right after construction.
  `BSFEngine`
  BSFManager.`loadScriptingEngine(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(String beanName)`
  Undeclare a previously declared bean.

- ## Uses of BSFException in org.apache.bsf.engines.jacl

  Methods in org.apache.bsf.engines.jacl that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  JaclEngine.`call(Object obj, String method, Object[] args)`
  `void`
  JaclEngine.`declareBean(BSFDeclaredBean bean)`
  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`
  JaclEngine.`undeclareBean(BSFDeclaredBean bean)`
  Undeclare a previously declared bean.

- ## Uses of BSFException in org.apache.bsf.engines.java

  Methods in org.apache.bsf.engines.java that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  JavaEngine.`call(Object object, String method, Object[] args)`
  `void`
  JavaEngine.`compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)`
  `Object`
  JavaEngine.`eval(String source, int lineNo, int columnNo, Object oscript)`
  This is used by an application to evaluate a string containing some expression.
  `void`
  JavaEngine.`initialize(BSFManager mgr, String lang, Vector declaredBeans)`

- ## Uses of BSFException in org.apache.bsf.engines.javaclass

  Methods in org.apache.bsf.engines.javaclass that throw BSFException
  Modifier and Type
  Method
  Description
  `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 of BSFException in org.apache.bsf.engines.javascript

  Methods in org.apache.bsf.engines.javascript that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  JavaScriptEngine.`call(Object object, String method, Object[] args)`
  Return an object from an extension.
  `void`
  JavaScriptEngine.`declareBean(BSFDeclaredBean bean)`
  `Object`
  JavaScriptEngine.`eval(String source, int lineNo, int columnNo, Object oscript)`
  This is used by an application to evaluate a string containing some expression.
  `void`
  JavaScriptEngine.`initialize(BSFManager mgr, String lang, Vector declaredBeans)`
  Initialize the engine.
  `void`
  JavaScriptEngine.`undeclareBean(BSFDeclaredBean bean)`

- ## Uses of BSFException in org.apache.bsf.engines.jython

  Methods in org.apache.bsf.engines.jython that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  JythonEngine.`apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)`
  Evaluate an anonymous function (differs from eval() in that apply() handles multiple lines).
  `Object`
  JythonEngine.`call(Object object, String method, Object[] args)`
  call the named method of the given object.
  `void`
  JythonEngine.`declareBean(BSFDeclaredBean bean)`
  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.`iexec(String source, int lineNo, int columnNo, Object script)`
  Execute script code, emulating console interaction.
  `void`
  JythonEngine.`initialize(BSFManager mgr, String lang, Vector declaredBeans)`
  Initialize the engine.
  `void`
  JythonEngine.`undeclareBean(BSFDeclaredBean bean)`
  Undeclare a previously declared bean.

- ## Uses of BSFException in org.apache.bsf.engines.netrexx

  Methods in org.apache.bsf.engines.netrexx that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  NetRexxEngine.`call(Object object, String method, Object[] args)`
  Return an object from an extension.
  `void`
  NetRexxEngine.`declareBean(BSFDeclaredBean bean)`
  `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)`
  `void`
  NetRexxEngine.`undeclareBean(BSFDeclaredBean bean)`

- ## Uses of BSFException in org.apache.bsf.engines.xslt

  Methods in org.apache.bsf.engines.xslt that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  XSLTEngine.`call(Object object, String method, Object[] args)`
  call the named method of the given object.
  `void`
  XSLTEngine.`declareBean(BSFDeclaredBean bean)`
  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`
  XSLTEngine.`undeclareBean(BSFDeclaredBean bean)`
  Undeclare a bean by setting he parameter represeting it to null

- ## Uses of BSFException in org.apache.bsf.test

  Methods in org.apache.bsf.test that throw BSFException
  Modifier and Type
  Method
  Description
  `Object`
  fakeEngine.`call(Object object, String method, Object[] args)`
  `Object`
  fakeEngine.`eval(String source, int lineNo, int columnNo, Object expr)`
  `void`
  fakeEngine.`exec(String source, int lineNo, int columnNo, Object script)`
  `void`
  fakeEngine.`iexec(String source, int lineNo, int columnNo, Object script)`

- ## Uses of BSFException in org.apache.bsf.test.utilTests

  Methods in org.apache.bsf.test.utilTests that throw BSFException
  Modifier and Type
  Method
  Description
  `void`
  EngineUtilsTest.`testCreateBean()`

- ## Uses of BSFException in org.apache.bsf.util

  Methods in org.apache.bsf.util that throw BSFException
  Modifier and Type
  Method
  Description
  `void`
  BSFFunctions.`addEventListener(Object src, String eventSetName, String filter, Object script)`
  `static 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.
  `static void`
  EngineUtils.`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.
  `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 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 ignoring 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.
  `static Object`
  EngineUtils.`createBean(String className, Object[] args)`
  Creates a new bean.
  `void`
  BSFEngineImpl.`declareBean(BSFDeclaredBean bean)`
  `void`
  BSFEngineImpl.`exec(String source, int lineNo, int columnNo, Object script)`
  Default impl of execute - calls eval and ignores the result.
  `void`
  BSFEngineImpl.`iexec(String source, int lineNo, int columnNo, Object script)`
  Default impl of interactive execution - 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.
  `static Class`
  EngineUtils.`loadClass(BSFManager mgr, String name)`
  Loads a class using the following sequence of class loaders: Thread's context class loader, settable class loader stored with BSFManager, BSFManager's defining class loader, BSF customized class loader (from the BSFManager's temporary directory).
  `void`
  BSFEngineImpl.`undeclareBean(BSFDeclaredBean bean)`