## 类的使用
org.mozilla.javascript.Context

- 使用Context的程序包
  程序包 | 说明
  --- | ---
  kd.bos.script.jsengine |
  kd.bos.script.jsengine.debug |
  kd.bos.script.jsengine.def |
  kd.bos.script.jsengine.mate |
  org.mozilla.javascript |

- - ### kd.bos.script.jsengine中Context的使用

    kd.bos.script.jsengine中Context的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `KContext` 上下文

    参数类型为Context的kd.bos.script.jsengine中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | KScope.`dump(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)`
    `static org.mozilla.javascript.Callable` | KSuper.`getSupperFunction(java.lang.String func, org.mozilla.javascript.Scriptable thisObj, org.mozilla.javascript.Scriptable scope, Context cx)`
    `static void` | KScope.`importClass(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)` 已过时。
    `static int` | KScope.`importModule(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)` 已过时。
    `static java.util.concurrent.Callable<?>` | KRuntime.`matchConstructor(java.lang.Class<?> beanCls, java.lang.Object[] args, Context cx)`
    `static java.util.concurrent.Callable<?>` | KRuntime.`matchMethod(java.lang.Object obj, java.util.List<java.lang.reflect.Method> methods, java.lang.Object[] args, org.mozilla.javascript.Scriptable scope, Context cx)`
    `static KRuntime.MethodInfo` | KRuntime.`matchMethodInfo(java.lang.Object obj, java.util.List<java.lang.reflect.Method> methods, java.lang.Object[] args, org.mozilla.javascript.Scriptable scope, Context cx)`
    `static void` | KScope.`print(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)` 变参数必须用这种格式，且为静态方法。
    `static void` | KScope.`println(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)`
    `static void` | KScope.`require(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)`

  - ### kd.bos.script.jsengine.debug中Context的使用

    参数类型为Context的kd.bos.script.jsengine.debug中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static DIM.ContextData` | DIM.ContextData.`get(Context cx)` Returns the ContextData for the given Context.
    `void` | DIM.StackFrame.`onDebuggerStatement(Context cx)` Called when a 'debugger' statement is executed.
    `void` | DIM.StackFrame.`onEnter(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)` Called when the stack frame is entered.
    `void` | DIM.StackFrame.`onExceptionThrown(Context cx, java.lang.Throwable exception)` Called when an exception has been thrown.
    `void` | DIM.StackFrame.`onExit(Context cx, boolean byThrow, java.lang.Object resultOrException)` Called when the stack frame has been left.
    `void` | DIM.StackFrame.`onLineChange(Context cx, int lineno)` Called when the current position has changed.

  - ### kd.bos.script.jsengine.def中Context的使用

    参数类型为Context的kd.bos.script.jsengine.def中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.lang.Object` | KDyWrapper.`execIdCall(org.mozilla.javascript.IdFunctionObject f, Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)` 动态反射

  - ### kd.bos.script.jsengine.mate中Context的使用

    参数类型为Context的kd.bos.script.jsengine.mate中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.lang.Object` | KSecurityController.`callWithDomain(java.lang.Object securityDomain, Context cx, org.mozilla.javascript.Callable callable, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)`
    `java.lang.Object` | KWrapFactory.`wrap(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object javaObject, java.lang.Class<?> staticType)` java object -->js, 用java描述的 "js object" or Scriptable、undifined、null 返回以下6中类型值 java.lang.Boolean java.lang.String java.lang.Number org.mozilla.javascript.Scriptable objects The value returned by Context.getUndefinedValue() null 内可能转调->wrapAsJavaObject
    `org.mozilla.javascript.Scriptable` | KWrapFactory.`wrapAsJavaObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object javaObject, java.lang.Class<?> staticType)` 【转换】 java object --> 用java描述的 js object (NativeJavaObject->Scriptable)
    `org.mozilla.javascript.Scriptable` | KWrapFactory.`wrapJavaClass(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Class<?> javaClass)` 【转换】 封装java类，一次性，作为prototype。
    `org.mozilla.javascript.Scriptable` | KWrapFactory.`wrapNewObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object obj)` 转调->wrapAsJavaObject new 创建js对象(java描述的js object)时调用 TODO 在此"原生级"限制拦截类，进行方法、属性调用限制。

  - ### org.mozilla.javascript中Context的使用

    返回Context的org.mozilla.javascript中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static Context` | Context.`enter()` Same as calling `ContextFactory.enterContext()` on the global ContextFactory instance.
    `static Context` | Context.`enter(Context cx)` 已过时。 use `ContextFactory.enterContext(Context)` instead as this method relies on usage of a static singleton "global" ContextFactory.
    `Context` | VMBridge_custom.`getContext(java.lang.Thread t)`
    `static Context` | Context.`getCurrentContext()` Get the current Context.

    参数类型为Context的org.mozilla.javascript中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static java.lang.Object` | ScriptRuntime.`add(java.lang.Object val1, java.lang.Object val2, Context cx)`
    `static void` | ScriptRuntime.`addInstructionCount(Context cx, int instructionsToAdd)`
    `static java.lang.Object` | ScriptRuntime.`applyOrCall(boolean isApply, Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)` Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34]
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`bind(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String id)` Returns the object in the scope chain that has a given property.
    `static java.lang.Object` | ScriptRuntime.`call(Context cx, java.lang.Object fun, java.lang.Object thisArg, java.lang.Object[] args, org.mozilla.javascript.Scriptable scope)` 已过时。 The method is only present for compatibility.
    `java.lang.Object` | NativeJavaMethod.`call(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)`
    `java.lang.Object` | FunctionObject.`call(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)` Performs conversions on argument types if needed and invokes the underlying Java method or constructor.
    `static java.lang.Object` | ScriptableObject.`callMethod(Context cx, org.mozilla.javascript.Scriptable obj, java.lang.String methodName, java.lang.Object[] args)` Call a method of an object.
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`callRef(org.mozilla.javascript.Callable function, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, Context cx)` Perform function call in reference context.
    `static java.lang.Object` | ScriptRuntime.`callSpecial(Context cx, org.mozilla.javascript.Callable fun, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable callerThis, int callType, java.lang.String filename, int lineNumber)`
    `static org.mozilla.javascript.NativeContinuation` | Interpreter.`captureContinuation(Context cx)`
    `static org.mozilla.javascript.RegExpProxy` | ScriptRuntime.`checkRegExpProxy(Context cx)`
    `static java.lang.Object` | FunctionObject.`convertArg(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object arg, java.lang.Class<?> desired)` 已过时。 Use `FunctionObject.getTypeTag(Class)` and `FunctionObject.convertArg(Context, Scriptable, Object, int)` for type conversion.
    `static java.lang.Object` | FunctionObject.`convertArg(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object arg, int typeTag)`
    `org.mozilla.javascript.Function` | Interpreter.`createFunctionObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object bytecode, java.lang.Object staticSecurityDomain)`
    `org.mozilla.javascript.Scriptable` | FunctionObject.`createObject(Context cx, org.mozilla.javascript.Scriptable scope)` Return new `Scriptable` instance using the default constructor for the class of the underlying Java method.
    `void` | ScriptableObject.`defineOwnProperties(Context cx, ScriptableObject props)` Defines one or more properties on this object.
    `void` | ScriptableObject.`defineOwnProperty(Context cx, java.lang.Object id, ScriptableObject desc)` Defines a property on an object.
    `static java.lang.Object` | ScriptRuntime.`delete(java.lang.Object obj, java.lang.Object id, Context cx)` 已过时。 Use `ScriptRuntime.delete(Object, Object, Context, Scriptable, boolean)` instead
    `static java.lang.Object` | ScriptRuntime.`delete(java.lang.Object obj, java.lang.Object id, Context cx, boolean isName)` 已过时。 Use `ScriptRuntime.delete(Object, Object, Context, Scriptable, boolean)` instead
    `static java.lang.Object` | ScriptRuntime.`delete(java.lang.Object obj, java.lang.Object id, Context cx, org.mozilla.javascript.Scriptable scope, boolean isName)` The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value.
    `static boolean` | ScriptRuntime.`deleteObjectElem(org.mozilla.javascript.Scriptable target, java.lang.Object elem, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`doTopCall(org.mozilla.javascript.Callable callable, Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)`
    `static java.lang.Object` | ScriptRuntime.`elemIncrDecr(java.lang.Object obj, java.lang.Object index, Context cx, int incrDecrMask)` 已过时。 Use `ScriptRuntime.elemIncrDecr(Object, Object, Context, Scriptable, int)` instead
    `static java.lang.Object` | ScriptRuntime.`elemIncrDecr(java.lang.Object obj, java.lang.Object index, Context cx, org.mozilla.javascript.Scriptable scope, int incrDecrMask)`
    `static Context` | Context.`enter(Context cx)` 已过时。 use `ContextFactory.enterContext(Context)` instead as this method relies on usage of a static singleton "global" ContextFactory.
    `static void` | ScriptRuntime.`enterActivationFunction(Context cx, org.mozilla.javascript.Scriptable scope)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`enterWith(java.lang.Object obj, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static java.lang.Object` | ScriptRuntime.`enumId(java.lang.Object enumObj, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`enumInit(java.lang.Object value, Context cx, boolean enumValues)` 已过时。 Use `ScriptRuntime.enumInit(Object, Context, Scriptable, int)` instead
    `static java.lang.Object` | ScriptRuntime.`enumInit(java.lang.Object value, Context cx, int enumType)` 已过时。 Use `ScriptRuntime.enumInit(Object, Context, Scriptable, int)` instead
    `static java.lang.Object` | ScriptRuntime.`enumInit(java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope, int enumType)`
    `static java.lang.Object` | ScriptRuntime.`enumValue(java.lang.Object enumObj, Context cx)`
    `static java.lang.String` | ScriptRuntime.`escapeAttributeValue(java.lang.Object value, Context cx)` Escapes the reserved characters in a value of an attribute
    `static java.lang.String` | ScriptRuntime.`escapeTextValue(java.lang.Object value, Context cx)` Escapes the reserved characters in a value of a text node
    `static java.lang.Object` | ScriptRuntime.`evalSpecial(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object thisArg, java.lang.Object[] args, java.lang.String filename, int lineNumber)` The eval function property of the global object.
    `java.lang.Object` | NativeNumber.`execIdCall(org.mozilla.javascript.IdFunctionObject f, Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)`
    `static void` | ScriptRuntime.`exitActivationFunction(Context cx)`
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getElemFunctionAndThis(java.lang.Object obj, java.lang.Object elem, Context cx)` 已过时。 Use `ScriptRuntime.getElemFunctionAndThis(Object, Object, Context, Scriptable)` instead
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getElemFunctionAndThis(java.lang.Object obj, java.lang.Object elem, Context cx, org.mozilla.javascript.Scriptable scope)` Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
    `static ScriptableObject` | ScriptRuntime.`getGlobal(Context cx)`
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getNameFunctionAndThis(java.lang.String name, Context cx, org.mozilla.javascript.Scriptable scope)` Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
    `static java.lang.Object` | ScriptRuntime.`getObjectElem(java.lang.Object obj, java.lang.Object elem, Context cx)` 已过时。 Use `ScriptRuntime.getObjectElem(Object, Object, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`getObjectElem(java.lang.Object obj, java.lang.Object elem, Context cx, org.mozilla.javascript.Scriptable scope)` Call obj.
    `static java.lang.Object` | ScriptRuntime.`getObjectElem(org.mozilla.javascript.Scriptable obj, java.lang.Object elem, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`getObjectIndex(java.lang.Object obj, double dblIndex, Context cx)` 已过时。 Use `ScriptRuntime.getObjectIndex(Object, double, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`getObjectIndex(java.lang.Object obj, double dblIndex, Context cx, org.mozilla.javascript.Scriptable scope)` A cheaper and less general version of the above for well-known argument types.
    `static java.lang.Object` | ScriptRuntime.`getObjectIndex(org.mozilla.javascript.Scriptable obj, int index, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`getObjectProp(java.lang.Object obj, java.lang.String property, Context cx)` 已过时。 Use `ScriptRuntime.getObjectProp(Object, String, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`getObjectProp(java.lang.Object obj, java.lang.String property, Context cx, org.mozilla.javascript.Scriptable scope)` Version of getObjectElem when elem is a valid JS identifier name.
    `static java.lang.Object` | ScriptRuntime.`getObjectProp(org.mozilla.javascript.Scriptable obj, java.lang.String property, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`getObjectPropNoWarn(java.lang.Object obj, java.lang.String property, Context cx)` 已过时。 Use `ScriptRuntime.getObjectPropNoWarn(Object, String, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`getObjectPropNoWarn(java.lang.Object obj, java.lang.String property, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getPropFunctionAndThis(java.lang.Object obj, java.lang.String property, Context cx)` 已过时。 Use `ScriptRuntime.getPropFunctionAndThis(Object, String, Context, Scriptable)` instead
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getPropFunctionAndThis(java.lang.Object obj, java.lang.String property, Context cx, org.mozilla.javascript.Scriptable scope)` Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
    `static org.mozilla.javascript.RegExpProxy` | ScriptRuntime.`getRegExpProxy(Context cx)`
    `java.lang.String` | Interpreter.`getSourcePositionFromStack(Context cx, int[] linep)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`getTopCallScope(Context cx)`
    `static org.mozilla.javascript.Callable` | ScriptRuntime.`getValueFunctionAndThis(java.lang.Object value, Context cx)` Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
    `static boolean` | ScriptRuntime.`hasObjectElem(org.mozilla.javascript.Scriptable target, java.lang.Object elem, Context cx)`
    `static boolean` | ScriptRuntime.`hasTopCall(Context cx)`
    `static boolean` | ScriptRuntime.`in(java.lang.Object a, java.lang.Object b, Context cx)` The in operator.
    `static void` | ScriptRuntime.`initFunction(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.NativeFunction function, int type, boolean fromEvalCode)`
    `static ScriptableObject` | ScriptRuntime.`initSafeStandardObjects(Context cx, ScriptableObject scope, boolean sealed)`
    `static void` | ScriptRuntime.`initScript(org.mozilla.javascript.NativeFunction funObj, org.mozilla.javascript.Scriptable thisObj, Context cx, org.mozilla.javascript.Scriptable scope, boolean evalScript)`
    `static ScriptableObject` | ScriptRuntime.`initStandardObjects(Context cx, ScriptableObject scope, boolean sealed)`
    `static boolean` | ScriptRuntime.`instanceOf(java.lang.Object a, java.lang.Object b, Context cx)` The instanceof operator.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`lastStoredScriptable(Context cx)`
    `static long` | ScriptRuntime.`lastUint32Result(Context cx)`
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`memberRef(java.lang.Object obj, java.lang.Object elem, Context cx, int memberTypeFlags)`
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`memberRef(java.lang.Object obj, java.lang.Object namespace, java.lang.Object elem, Context cx, int memberTypeFlags)`
    `static java.lang.Object` | ScriptRuntime.`name(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String name)` Looks up a name in the scope chain and returns its value.
    `static java.lang.Object` | ScriptRuntime.`nameIncrDecr(org.mozilla.javascript.Scriptable scopeChain, java.lang.String id, Context cx, int incrDecrMask)`
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`nameRef(java.lang.Object name, Context cx, org.mozilla.javascript.Scriptable scope, int memberTypeFlags)`
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`nameRef(java.lang.Object namespace, java.lang.Object name, Context cx, org.mozilla.javascript.Scriptable scope, int memberTypeFlags)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newArrayLiteral(java.lang.Object[] objects, int[] skipIndices, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newBuiltinObject(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.TopLevel.Builtins type, java.lang.Object[] args)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newCatchScope(java.lang.Throwable t, org.mozilla.javascript.Scriptable lastCatchScope, java.lang.String exceptionName, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String constructorName, java.lang.Object[] args)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newObject(java.lang.Object fun, Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object[] args)` Operator new.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newObjectLiteral(java.lang.Object[] propertyIds, java.lang.Object[] propertyValues, Context cx, org.mozilla.javascript.Scriptable scope)` 已过时。 Use `ScriptRuntime.newObjectLiteral(Object[], Object[], int[], Context, Scriptable)` instead
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`newObjectLiteral(java.lang.Object[] propertyIds, java.lang.Object[] propertyValues, int[] getterSetters, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static java.lang.Object` | ScriptRuntime.`newSpecial(Context cx, java.lang.Object fun, java.lang.Object[] args, org.mozilla.javascript.Scriptable scope, int callType)`
    `static java.lang.Object` | ScriptRuntime.`propIncrDecr(java.lang.Object obj, java.lang.String id, Context cx, int incrDecrMask)` 已过时。 Use `ScriptRuntime.propIncrDecr(Object, String, Context, Scriptable, int)` instead
    `static java.lang.Object` | ScriptRuntime.`propIncrDecr(java.lang.Object obj, java.lang.String id, Context cx, org.mozilla.javascript.Scriptable scope, int incrDecrMask)`
    `static java.lang.Object` | ScriptRuntime.`refDel(org.mozilla.javascript.Ref ref, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`refGet(org.mozilla.javascript.Ref ref, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`refIncrDecr(org.mozilla.javascript.Ref ref, Context cx, int incrDecrMask)` 已过时。 Use `ScriptRuntime.refIncrDecr(Ref, Context, Scriptable, int)` instead
    `static java.lang.Object` | ScriptRuntime.`refIncrDecr(org.mozilla.javascript.Ref ref, Context cx, org.mozilla.javascript.Scriptable scope, int incrDecrMask)`
    `static java.lang.Object` | ScriptRuntime.`refSet(org.mozilla.javascript.Ref ref, java.lang.Object value, Context cx)` 已过时。 Use `ScriptRuntime.refSet(Ref, Object, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`refSet(org.mozilla.javascript.Ref ref, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static java.lang.Object` | Interpreter.`restartContinuation(org.mozilla.javascript.NativeContinuation c, Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object[] args)`
    `static java.lang.Object` | Interpreter.`resumeGenerator(Context cx, org.mozilla.javascript.Scriptable scope, int operation, java.lang.Object savedState, java.lang.Object value)`
    `static java.lang.Object` | ScriptRuntime.`searchDefaultNamespace(Context cx)`
    `static java.lang.Object` | ScriptRuntime.`setConst(org.mozilla.javascript.Scriptable bound, java.lang.Object value, Context cx, java.lang.String id)`
    `static java.lang.Object` | ScriptRuntime.`setDefaultNamespace(java.lang.Object namespace, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`setName(org.mozilla.javascript.Scriptable bound, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String id)`
    `static java.lang.Object` | ScriptRuntime.`setObjectElem(java.lang.Object obj, java.lang.Object elem, java.lang.Object value, Context cx)` 已过时。 Use `ScriptRuntime.setObjectElem(Object, Object, Object, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`setObjectElem(java.lang.Object obj, java.lang.Object elem, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope)` Call obj.
    `static java.lang.Object` | ScriptRuntime.`setObjectElem(org.mozilla.javascript.Scriptable obj, java.lang.Object elem, java.lang.Object value, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`setObjectIndex(java.lang.Object obj, double dblIndex, java.lang.Object value, Context cx)` 已过时。 Use `ScriptRuntime.setObjectIndex(Object, double, Object, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`setObjectIndex(java.lang.Object obj, double dblIndex, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope)` A cheaper and less general version of the above for well-known argument types.
    `static java.lang.Object` | ScriptRuntime.`setObjectIndex(org.mozilla.javascript.Scriptable obj, int index, java.lang.Object value, Context cx)`
    `static java.lang.Object` | ScriptRuntime.`setObjectProp(java.lang.Object obj, java.lang.String property, java.lang.Object value, Context cx)` 已过时。 Use `ScriptRuntime.setObjectProp(Object, String, Object, Context, Scriptable)` instead
    `static java.lang.Object` | ScriptRuntime.`setObjectProp(java.lang.Object obj, java.lang.String property, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope)` Version of setObjectElem when elem is a valid JS identifier name.
    `static java.lang.Object` | ScriptRuntime.`setObjectProp(org.mozilla.javascript.Scriptable obj, java.lang.String property, java.lang.Object value, Context cx)`
    `static void` | ScriptRuntime.`setRegExpProxy(Context cx, org.mozilla.javascript.RegExpProxy proxy)`
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`specialRef(java.lang.Object obj, java.lang.String specialProperty, Context cx)` 已过时。 Use `ScriptRuntime.specialRef(Object, String, Context, Scriptable)` instead
    `static org.mozilla.javascript.Ref` | ScriptRuntime.`specialRef(java.lang.Object obj, java.lang.String specialProperty, Context cx, org.mozilla.javascript.Scriptable scope)`
    `static void` | ScriptRuntime.`storeUint32Result(Context cx, long value)`
    `static java.lang.Object` | ScriptRuntime.`strictSetName(org.mozilla.javascript.Scriptable bound, java.lang.Object value, Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String id)`
    `static org.mozilla.javascript.JavaScriptException` | ScriptRuntime.`throwCustomError(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String constructorName, java.lang.String message)` Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from JavaScript.
    `static org.mozilla.javascript.JavaScriptException` | ScriptRuntime.`throwError(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String message)` Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`toIterator(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable obj, boolean keyOnly)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`toObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object val)` Convert the value to an object.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`toObject(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object val, java.lang.Class<?> staticClass)` 已过时。 Use `ScriptRuntime.toObject(Context, Scriptable, Object)` instead.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`toObjectOrNull(Context cx, java.lang.Object obj)` 已过时。 Use `ScriptRuntime.toObjectOrNull(Context, Object, Scriptable)` instead
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`toObjectOrNull(Context cx, java.lang.Object obj, org.mozilla.javascript.Scriptable scope)`
    `static org.mozilla.javascript.BaseFunction` | ScriptRuntime.`typeErrorThrower(Context cx)` Returns representation of the [[ThrowTypeError]] object.
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`wrapException(java.lang.Throwable t, org.mozilla.javascript.Scriptable scope, Context cx)`
    `static org.mozilla.javascript.Scriptable` | ScriptRuntime.`wrapRegExp(Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object compiled)`