public class BSFJavaScriptEngine
extends org.apache.bsf.util.BSFEngineImpl
The original version of this code was first written by Adam Peller for use in LotusXSL. Sanjiva took his code and adapted it for BSF. Modified for JMeter to fix bug BSF-22.
| Constructor and Description |
|---|
BSFJavaScriptEngine() |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object object,
String method,
Object[] args)
Return an object from an extension.
|
void |
declareBean(org.apache.bsf.BSFDeclaredBean bean) |
Object |
eval(String source,
int lineNo,
int columnNo,
Object oscript)
This is used by an application to evaluate a string containing
some expression.
|
void |
initialize(org.apache.bsf.BSFManager mgr,
String lang,
Vector declaredBeans)
Initialize the engine.
|
void |
undeclareBean(org.apache.bsf.BSFDeclaredBean bean) |
public Object call(Object object, String method, Object[] args) throws org.apache.bsf.BSFException
object - Object on which to make the call (ignored).method - The name of the method to call.args - an array of arguments to be
passed to the extension, which may be either
Vectors of Nodes, or Strings.org.apache.bsf.BSFExceptionpublic void declareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
declareBean in interface org.apache.bsf.BSFEnginedeclareBean in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFExceptionpublic Object eval(String source, int lineNo, int columnNo, Object oscript) throws org.apache.bsf.BSFException
org.apache.bsf.BSFExceptionpublic void initialize(org.apache.bsf.BSFManager mgr,
String lang,
Vector declaredBeans)
throws org.apache.bsf.BSFException
initialize in interface org.apache.bsf.BSFEngineinitialize in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFExceptionpublic void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
undeclareBean in interface org.apache.bsf.BSFEngineundeclareBean in class org.apache.bsf.util.BSFEngineImplorg.apache.bsf.BSFExceptionCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.