org.mozilla.javascript

Class NativeGlobal

Implemented Interfaces:
Serializable, IdFunctionCall

public class NativeGlobal
extends java.lang.Object
implements Serializable, IdFunctionCall

This class implements the global native object (function and value properties only). See ECMA 15.1.[12].
Author:
Mike Shaver

Method Summary

static EcmaError
constructError(Context cx, String error, String message, Scriptable scope)
Deprecated. Use ScriptRuntime.constructError(String,String) instead.
static EcmaError
constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource)
Deprecated. Use ScriptRuntime.constructError(String,String,String,int,String,int) instead.
Object
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 returned
static void
init(Context cx, Scriptable scope, boolean sealed)

Method Details

constructError

public static EcmaError constructError(Context cx,
                                       String error,
                                       String message,
                                       Scriptable scope)

Deprecated. Use ScriptRuntime.constructError(String,String) instead.


constructError

public static EcmaError constructError(Context cx,
                                       String error,
                                       String message,
                                       Scriptable scope,
                                       String sourceName,
                                       int lineNumber,
                                       int columnNumber,
                                       String lineSource)

Deprecated. Use ScriptRuntime.constructError(String,String,String,int,String,int) instead.


execIdCall

public Object 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 returned
Specified by:
execIdCall in interface IdFunctionCall

init

public static void init(Context cx,
                        Scriptable scope,
                        boolean sealed)