Uses of Class
org.apache.bsf.BSFException
Packages that use BSFException
-
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.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.This is used by an application to evaluate an expression.Evaluate the given expression of the given language and return the resulting value.void
This is used by an application to execute some script.void
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
This is used by an application to execute some script, as though one were interacting with the language in an interactive session.void
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.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.util
Methods in org.apache.bsf.util that throw BSFExceptionModifier and TypeMethodDescriptionvoid
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.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
Default impl of execute - calls eval and ignores the result.void
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) Load a class using the class loader of given manager.void
BSFEngineImpl.undeclareBean
(BSFDeclaredBean bean)