#include "TclXPCOMPrivate.h"
Go to the source code of this file.
Functions | |
void * | CloneMemory (void *ptr, size_t size) |
int | TclXPCOM_CheckInterfaceIsReflectable (Tcl_Interp *interp, nsIInterfaceInfo *interfaceinfo, int flags) |
int | TclXPCOM_CheckMethodIsReflectable (Tcl_Interp *interp, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, int flags) |
int | isInInterface (nsIInterfaceInfo *interfaceinfo, nsIID *iid) |
Tcl_Obj * | TclXPCOM_ListInterfaceConstants (nsIInterfaceInfo *interfaceinfo) |
Tcl_Obj * | TclXPCOM_ListInterfaceAttributes (nsIInterfaceInfo *interfaceinfo) |
Tcl_Obj * | TclXPCOM_ListInterfaceMethods (nsIInterfaceInfo *interfaceinfo) |
Tcl_Obj * | TclXPCOM_ListClassMethods (ClassInfo *cinfo) |
Tcl_Obj * | TclXPCOM_ListClassAttributes (ClassInfo *cinfo) |
Tcl_Obj * | GetType (nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, nsXPTParamInfo *paraminfo, nsXPTType type) |
Tcl_Obj * | GetParam (nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, nsXPTParamInfo *paraminfo) |
Tcl_Obj * | TclXPCOM_ListMethodArguments (nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex) |
Tcl_Obj * | TclXPCOM_GetReturnValueType (nsIInterfaceInfo *interfaceinfo, IdentifierInfo *idinfo) |
Tcl_Obj * | TclXPCOM_GetAttributeType (nsIInterfaceInfo *interfaceinfo, IdentifierInfo *idinfo) |
Contains various utility functions for interface introspection.
Definition in file TclXPCOMInterfaceUtils.cpp.
|
Duplicates a chunk of memory using the XPCOM memory manager.
Definition at line 50 of file TclXPCOMInterfaceUtils.cpp. |
|
Verifies that an interface is reflectable into TclXPCOM (is marked 'scriptable' in the IDL file). If it is not reflectable, an error message will be set in the given interpreter. If the 'FORCE_NOTSCRIPTABLE' bit is set in 'flags', then no error will be generated even if the interface is not reflectable.
Definition at line 75 of file TclXPCOMInterfaceUtils.cpp. References FORCE_HIDDEN, FORCE_NOTSCRIPTABLE, and FORCE_NOTXPCOM. |
|
Verifies that a method is reflectable into TclXPCOM (is not marked 'noscript' or 'notxpcom' in the IDL file). If it is not reflectable, an error message will be set in the given interpreter. The 'FORCE_HIDDEN' and 'FORCE_NOTXPCOM' bits in 'flags' will override any 'noscript' or 'notxpcom' marked methods, respectively, forcing a successful return.
Definition at line 115 of file TclXPCOMInterfaceUtils.cpp. References FORCE_HIDDEN, FORCE_NOTSCRIPTABLE, and FORCE_NOTXPCOM. |
|
Determines whether an interface specified by 'iid' is an ancestor of the interface specified by 'interfaceinfo', or if 'iid' and 'interfaceinfo' refer to the same interface.
Definition at line 160 of file TclXPCOMInterfaceUtils.cpp. |
|
Lists the constants of an interface and its ancestors.
Definition at line 189 of file TclXPCOMInterfaceUtils.cpp. References InterfaceInfo::constantcount, InterfaceInfo::constantnames, and GetInterfaceInfo. |
|
Lists the attributes of an interface and its ancestors.
Definition at line 217 of file TclXPCOMInterfaceUtils.cpp. References InterfaceInfo::attributecount, InterfaceInfo::attributes, GetInterfaceInfo, and IdentifierInfo_::name. |
|
Lists the methods of an interface and its ancestors.
Definition at line 245 of file TclXPCOMInterfaceUtils.cpp. References GetInterfaceInfo, InterfaceInfo::methodcount, InterfaceInfo::methods, and IdentifierInfo_::name. |
|
Lists the methods associated with a set of interfaces composing a class. Any ambiguous method names will be qualified with their corresponding interface name.
Definition at line 275 of file TclXPCOMInterfaceUtils.cpp. References ClassIdentifierInfo::idinfo, ClassInfo_::methodcount, ClassInfo_::methods, and IdentifierInfo_::name. |
|
Lists the attributes associated with a set of interfaces composing a class. Any ambiguous attribute names will be qualified with their corresponding interface name.
Definition at line 302 of file TclXPCOMInterfaceUtils.cpp. References ClassInfo_::attributecount, ClassInfo_::attributes, ClassIdentifierInfo::idinfo, and IdentifierInfo_::name. |
|
Determines the string representation of the type of a given parameter. If the parameter is an array, a list will be returned whose first element is 'list' followed by the type of values in the array.
Definition at line 331 of file TclXPCOMInterfaceUtils.cpp. Referenced by GetParam, TclXPCOM_GetAttributeType, and TclXPCOM_GetReturnValueType. |
|
Determines the string representation of a method parameter. It's representation consists of a list whose first element is the direction of the parameter (in, out, or inout) followed by the type of the parameter.
Definition at line 465 of file TclXPCOMInterfaceUtils.cpp. References GetType. Referenced by TclXPCOM_ListMethodArguments. |
|
Lists the types of a method's arguments.
Definition at line 506 of file TclXPCOMInterfaceUtils.cpp. References GetMethodInfo, GetParam, PARAM_IS_RETVAL, PARAM_IS_SKIPPED, MethodInfo::paramcount, MethodInfo::paraminfos, and MethodInfo::tclparams. |
|
Determines the type of a method's return value.
Definition at line 545 of file TclXPCOMInterfaceUtils.cpp. References GetMethodInfo, GetType, IdentifierInfo_::indices, PARAM_IS_RETVAL, MethodInfo::paramcount, MethodInfo::paraminfos, and MethodInfo::tclparams. |
|
Determines the type of an attribute.
Definition at line 582 of file TclXPCOMInterfaceUtils.cpp. References GetMethodInfo, GetType, IdentifierInfo_::indices, INTERFACEINFO_GETTER, MethodInfo::paraminfos, MethodInfo::tclparams, and IdentifierInfo_::type. |