Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
jsdIContext Interface Reference

Context object. More...

import "jsdIDebuggerService.idl";

Inheritance diagram for jsdIContext:
Inheritance graph
[legend]
Collaboration diagram for jsdIContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void invalidate ()
 Mark this instance as invalid.

Public Attributes

readonly attribute JSContext JSContext
const long OPT_STRICT = 0x01
 OPT_* values must be kept in sync with JSOPTION_* #defines in jsapi.h.
const long OPT_WERR = 0x02
 Warnings reported as errors.
const long OPT_VAROBJFIX = 0x04
 Makes eval() use the last object on its 'obj' param's scope chain as the ECMA 'variables object'.
const long OPT_ISUPPORTS = 0x08
 Private data for this object is an nsISupports object.
attribute unsigned long options
 OPT_* values above, OR'd together.
attribute long version
 Last version set on this context.
readonly attribute unsigned long tag
 Unique tag among all valid jsdIContext objects, useful as a hash key.
readonly attribute nsISupports privateData
 Private data for this context, if it is an nsISupports, |null| otherwise.
readonly attribute nsISupports wrappedContext
 Retrieve the underlying context wrapped by this jsdIContext.
readonly attribute jsdIValue globalObject
 Top of the scope chain for this context.
attribute boolean scriptsEnabled
 |true| if this context should be allowed to run scripts, |false| otherwise.
readonly attribute boolean isValid
 |true| if this object is still valid.

Detailed Description

Context object.

Only context's which are also nsISupports objects can be reflected by this interface.

Definition at line 705 of file jsdIDebuggerService.idl.


Member Function Documentation

Mark this instance as invalid.


Member Data Documentation

Top of the scope chain for this context.

Definition at line 762 of file jsdIDebuggerService.idl.

|true| if this object is still valid.

If not, many or all of the methods and/or properties of the inheritor may no longer be callable.

Definition at line 691 of file jsdIDebuggerService.idl.

Definition at line 708 of file jsdIDebuggerService.idl.

Private data for this object is an nsISupports object.

Attempting to alter this bit will result in an NS_ERROR_ILLEGAL_VALUE.

Definition at line 731 of file jsdIDebuggerService.idl.

OPT_* values must be kept in sync with JSOPTION_* #defines in jsapi.h.

Strict mode is on.

Definition at line 717 of file jsdIDebuggerService.idl.

Makes eval() use the last object on its 'obj' param's scope chain as the ECMA 'variables object'.

Definition at line 726 of file jsdIDebuggerService.idl.

Warnings reported as errors.

Definition at line 721 of file jsdIDebuggerService.idl.

OPT_* values above, OR'd together.

Definition at line 735 of file jsdIDebuggerService.idl.

readonly attribute nsISupports jsdIContext::privateData

Private data for this context, if it is an nsISupports, |null| otherwise.

Definition at line 752 of file jsdIDebuggerService.idl.

|true| if this context should be allowed to run scripts, |false| otherwise.

This attribute is only valid for contexts which implement nsIScriptContext. Setting or getting this attribute on any other context will throw a NS_ERROR_NO_INTERFACE exception.

Definition at line 770 of file jsdIDebuggerService.idl.

readonly attribute unsigned long jsdIContext::tag

Unique tag among all valid jsdIContext objects, useful as a hash key.

Definition at line 747 of file jsdIDebuggerService.idl.

Last version set on this context.

Scripts typically select this with the "language" attribute. See the VERSION_* consts on jsdIDebuggerService.

Definition at line 742 of file jsdIDebuggerService.idl.

readonly attribute nsISupports jsdIContext::wrappedContext

Retrieve the underlying context wrapped by this jsdIContext.

Definition at line 757 of file jsdIDebuggerService.idl.


The documentation for this interface was generated from the following file: