Package org.mozilla.javascript
Class NativeGlobal
java.lang.Object
org.mozilla.javascript.NativeGlobal
- All Implemented Interfaces:
Serializable
,IdFunctionCall
This class implements the global native object (function and value properties only).
See ECMA 15.1.[12].
- Author:
- Mike Shaver
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EcmaError
constructError
(Context cx, String error, String message, Scriptable scope) Deprecated.static EcmaError
constructError
(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource) Deprecated.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) 'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returnedstatic void
init
(Context cx, Scriptable scope, boolean sealed)
-
Constructor Details
-
NativeGlobal
public NativeGlobal()
-
-
Method Details
-
init
-
execIdCall
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Description copied from interface:IdFunctionCall
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned- Specified by:
execIdCall
in interfaceIdFunctionCall
-
constructError
@Deprecated public static EcmaError constructError(Context cx, String error, String message, Scriptable scope) Deprecated.UseScriptRuntime.constructError(String,String)
instead. -
constructError
@Deprecated public static EcmaError constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource) Deprecated.
-
ScriptRuntime.constructError(String,String)
instead.