You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
nsIClassInfo
This interface provides information about a specific implementation class. It is scriptable.
Returns an ordered list of the interface IDs that instances of the class promise to implement. Note that
nsISupports
is an implicit member of any such list and need not be included. The method should set*count = 0
and*array = null
and returnNS_OK
if getting the list is not supported.Syntax:
void nsIClassInfo::getInterfaces(out PRUint32 count, [array, size_is(count), retval]out nsIIDPtr array)Parameters:
nsresult:
Gets a language mapping specific helper object that may assist in using objects of this class in a specific language. For instance, if asked for the helper for
nsIProgrammingLanguage::JAVASCRIPT
this might return an object that can be QI'd into thensIXPCScriptable
interface to assist XPConnect in supplying JavaScript specific behavior to callers of the instance object. This method should returnnull
if no helper available for given language.Syntax:
nsISupports nsIClassInfo::getHelperForLanguage( in PRUint32 language)
Parameters:
Returns:
See also:
nsIProgrammingLanguage
for language constants.
Gets the contract ID through which an instance of this class can be created (or accessed as a service, if
flags & SINGLETON
), ornull
.Gets a human readable string naming the class, or
null
.Gets the class ID through which an instance of this class can be created (or accessed as a service, if
flags & SINGLETON
), ornull
.Gets the language type from list in
nsIProgrammingLanguage
.Gets a class ID through which an instance of this class can be created (or accessed as a service, if
flags & SINGLETON
). If the class does not have a CID, it should returnNS_ERROR_NOT_AVAILABLE
. This attribute exists so C++ callers can avoid allocating and freeing a CID, as would happen if they used class ID.Note: The high order bit is RESERVED for consumers of these flags. No implementor of this interface should ever return flags with this bit set.
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |