| Package | Description |
|---|---|
| org.apache.bsf.debug.jsdi | |
| org.apache.bsf.debug.meta | |
| org.apache.bsf.engines.javascript |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JsCode
This interface exposes debugging information from executable
code (either functions or top-level scripts).
|
interface |
JsFunction
Represents a function in the engine since JavaScript
has code as first-class objects.
|
interface |
JsScript
Represents a script in the engine since JavaScript
has code as first-class objects.
|
| Modifier and Type | Method and Description |
|---|---|
JsObject |
JsContext.bind(java.lang.String id) |
JsObject |
JsFunction.construct(JsContext cx,
JsObject scope,
java.lang.Object[] args)
Call the function as a constructor.
|
JsObject |
JsEngine.getGlobalObject()
Any execution in JavaScript happen with respect to a
global object, sort of the top-level name space for
properties.
|
JsObject |
JsObject.getPrototype()
Get the prototype of the object.
|
JsObject |
JsObject.getScope()
The scope is for supporting two things.
|
JsObject |
JsContext.getScope()
Scope of a context.
|
JsObject |
JsContext.getThis() |
JsObject |
JsEngine.getUndefinedValue()
As per ECMA specification, each JavaScript execution
defines a unique object for the undefined value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
JsFunction.call(JsContext cx,
JsObject scope,
JsObject thisObj,
java.lang.Object[] args)
Call the function.
|
JsObject |
JsFunction.construct(JsContext cx,
JsObject scope,
java.lang.Object[] args)
Call the function as a constructor.
|
java.lang.Object |
JsScript.exec(JsContext cx,
JsObject scope)
Execute the script.
|
boolean |
JsObject.hasInstance(JsObject instance)
The instanceof operator.
|
void |
JsObject.setPrototype(JsObject prototype)
Set the prototype of the object.
|
void |
JsObject.setScope(JsObject scope)
Set the prototype of the object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsCodeStub |
| Modifier and Type | Method and Description |
|---|---|
JsObject |
JsContextStub.bind(java.lang.String id) |
JsObject |
JsEngineStub.getGlobalObject()
Any execution in JavaScript happen with respect to a
global object, sort of the top-level name space for
properties.
|
JsObject |
JsObjectStub.getPrototype()
Get the prototype of the object.
|
JsObject |
JsObjectStub.getScope()
The scope is for supporting two things.
|
JsObject |
JsContextStub.getScope() |
JsObject |
JsContextStub.getThis() |
JsObject |
JsEngineStub.getUndefinedValue()
As per ECMA specification, each JavaScript execution
defines a unique object for the undefined value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JsObjectStub.hasInstance(JsObject instance)
The instanceof operator.
|
void |
JsObjectStub.setPrototype(JsObject prototype)
Set the prototype of the object.
|
void |
JsObjectStub.setScope(JsObject scope)
Set the prototype of the object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsObjectStub
Insert the type's description here.
|
| Modifier and Type | Method and Description |
|---|---|
JsObject |
JsContextStub.bind(java.lang.String id) |
JsObject |
JsEngineStub.getGlobalObject() |
JsObject |
RhinoEngineDebugger.getGlobalObject() |
JsObject |
JsObjectStub.getPrototype() |
JsObject |
JsObjectStub.getScope() |
JsObject |
JsContextStub.getScope() |
JsObject |
JsContextStub.getThis() |
JsObject |
JsEngineStub.getUndefinedValue() |
JsObject |
RhinoEngineDebugger.getUndefinedValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
JsObjectStub.define(java.lang.String propertyName,
JsObject value,
int attributes) |
boolean |
JsObjectStub.hasInstance(JsObject instance) |
void |
JsObjectStub.setPrototype(JsObject prototype) |
void |
JsObjectStub.setScope(JsObject jsobj) |