Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
jsdProperty Class Reference

#include <jsd_xpc.h>

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_JSDIPROPERTY
NS_DECL_JSDIEPHEMERAL 
jsdProperty (JSDContext *aCx, JSDProperty *aProperty)
virtual ~jsdProperty ()
void invalidate ()
 Mark this instance as invalid.

Static Public Member Functions

static jsdIPropertyFromPtr (JSDContext *aCx, JSDProperty *aProperty)
static void InvalidateAll ()

Public Attributes

readonly attribute JSDContext JSDContext
 Internal use only.
readonly attribute JSDProperty JSDProperty
 Internal use only.
const unsigned long FLAG_ENUMERATE = 0x01
 FLAG_* values must be kept in sync with JSDPD_* #defines in jsdebug.h.
const unsigned long FLAG_READONLY = 0x02
 assignment is error
const unsigned long FLAG_PERMANENT = 0x04
 property cannot be deleted
const unsigned long FLAG_ALIAS = 0x08
 property has an alias id
const unsigned long FLAG_ARGUMENT = 0x10
 argument to function
const unsigned long FLAG_VARIABLE = 0x20
 local variable in function
const unsigned long FLAG_EXCEPTION = 0x40
 exception occurred looking up property, value is exception
const unsigned long FLAG_ERROR = 0x80
 native getter returned JS_FALSE without throwing an exception
const unsigned long FLAG_HINTED = 0x800
 found via explicit lookup (property defined elsewhere.)
readonly attribute unsigned long flags
 FLAG_* values OR'd together, representing the flags for this property.
readonly attribute jsdIValue alias
 jsdIValue representing the alias for this property.
readonly attribute jsdIValue name
 name for this property.
readonly attribute jsdIValue value
 value of this property.
readonly attribute unsigned long varArgSlot
 slot number if this property is a local variable or parameter.
readonly attribute boolean isValid
 |true| if this object is still valid.

Private Member Functions

 jsdProperty ()
 jsdProperty (const jsdProperty &)

Private Attributes

PRBool mValid
LiveEphemeral mLiveListEntry
JSDContextmCx
JSDPropertymProperty

Detailed Description

Definition at line 100 of file jsd_xpc.h.


Constructor & Destructor Documentation

jsdProperty::jsdProperty ( JSDContext aCx,
JSDProperty aProperty 
)

Definition at line 871 of file jsd_xpc.cpp.

                                                                 :
    mCx(aCx), mProperty(aProperty)
{
    DEBUG_CREATE ("jsdProperty", gPropertyCount);
    mValid = (aCx && aProperty);
    mLiveListEntry.value = this;
    jsds_InsertEphemeral (&gLiveProperties, &mLiveListEntry);
}

Here is the call graph for this function:

Definition at line 880 of file jsd_xpc.cpp.

{
    DEBUG_DESTROY ("jsdProperty", gPropertyCount);
    if (mValid)
        Invalidate();
}
jsdProperty::jsdProperty ( ) [private]

Here is the caller graph for this function:


Member Function Documentation

static jsdIProperty* jsdProperty::FromPtr ( JSDContext aCx,
JSDProperty aProperty 
) [inline, static]

Definition at line 110 of file jsd_xpc.h.

    {
        if (!aProperty)
            return nsnull;
        
        jsdIProperty *rv = new jsdProperty (aCx, aProperty);
        NS_IF_ADDREF(rv);
        return rv;
    }

Here is the call graph for this function:

Mark this instance as invalid.

Definition at line 898 of file jsd_xpc.cpp.

Here is the call graph for this function:


Member Data Documentation

readonly attribute jsdIValue jsdIProperty::alias [inherited]

jsdIValue representing the alias for this property.

Definition at line 1227 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_ALIAS = 0x08 [inherited]

property has an alias id

Definition at line 1212 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_ARGUMENT = 0x10 [inherited]

argument to function

Definition at line 1214 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_ENUMERATE = 0x01 [inherited]

FLAG_* values must be kept in sync with JSDPD_* #defines in jsdebug.h.

visible to for/in loop

Definition at line 1206 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_ERROR = 0x80 [inherited]

native getter returned JS_FALSE without throwing an exception

Definition at line 1220 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_EXCEPTION = 0x40 [inherited]

exception occurred looking up property, value is exception

Definition at line 1218 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_HINTED = 0x800 [inherited]

found via explicit lookup (property defined elsewhere.)

Definition at line 1222 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_PERMANENT = 0x04 [inherited]

property cannot be deleted

Definition at line 1210 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_READONLY = 0x02 [inherited]

assignment is error

Definition at line 1208 of file jsdIDebuggerService.idl.

const unsigned long jsdIProperty::FLAG_VARIABLE = 0x20 [inherited]

local variable in function

Definition at line 1216 of file jsdIDebuggerService.idl.

readonly attribute unsigned long jsdIProperty::flags [inherited]

FLAG_* values OR'd together, representing the flags for this property.

Definition at line 1225 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.

Internal use only.

Definition at line 1197 of file jsdIDebuggerService.idl.

Internal use only.

Definition at line 1199 of file jsdIDebuggerService.idl.

Definition at line 129 of file jsd_xpc.h.

Definition at line 128 of file jsd_xpc.h.

Definition at line 130 of file jsd_xpc.h.

Definition at line 127 of file jsd_xpc.h.

readonly attribute jsdIValue jsdIProperty::name [inherited]

name for this property.

Definition at line 1229 of file jsdIDebuggerService.idl.

readonly attribute jsdIValue jsdIProperty::value [inherited]

value of this property.

Definition at line 1231 of file jsdIDebuggerService.idl.

readonly attribute unsigned long jsdIProperty::varArgSlot [inherited]

slot number if this property is a local variable or parameter.

Definition at line 1233 of file jsdIDebuggerService.idl.


The documentation for this class was generated from the following files: