public class BSFJavaScriptEngine
extends 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 | Description |
|---|---|
BSFJavaScriptEngine() |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
call(Object object,
String method,
Object[] args) |
Return an object from an extension.
|
void |
declareBean(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(BSFManager mgr,
String lang,
Vector declaredBeans) |
Initialize the engine.
|
void |
undeclareBean(BSFDeclaredBean bean) |
public Object call(Object object, String method, Object[] args) throws 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.BSFExceptionpublic void declareBean(BSFDeclaredBean bean)
throws BSFException
BSFExceptionpublic Object eval(String source, int lineNo, int columnNo, Object oscript) throws BSFException
BSFExceptionpublic void initialize(BSFManager mgr,
String lang,
Vector declaredBeans)
throws BSFException
BSFExceptionpublic void undeclareBean(BSFDeclaredBean bean)
throws BSFException
BSFExceptionCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.