Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
xpcom.xpt.Methods Class Reference

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__

Public Attributes

 interface_info
 items

Detailed Description

Definition at line 153 of file xpt.py.


Constructor & Destructor Documentation

def xpcom.xpt.Methods.__init__ (   self,
  interface_info 
)

Definition at line 154 of file xpt.py.

00154 
00155     def __init__(self, interface_info):
00156         self.interface_info = interface_info
00157         try:
00158             self.items = [None] * interface_info.GetMethodCount()
00159         except xpcom.Exception:
00160             if xpcom.verbose:
00161                 print "** GetMethodCount failed?? - assuming no methods"
            self.items = []

Member Function Documentation

def xpcom.xpt.Methods.__getitem__ (   self,
  index 
)

Definition at line 164 of file xpt.py.

00164 
00165     def __getitem__(self, index):
00166         ret = self.items[index]
00167         if ret is None:
00168             mi = self.interface_info.GetMethodInfo(index)
00169             ret = self.items[index] = Method(mi, index, self.interface_info)
00170         return ret

def xpcom.xpt.Methods.__len__ (   self)

Definition at line 162 of file xpt.py.

00162 
00163     def __len__(self):
        return len(self.items)

Member Data Documentation

Definition at line 155 of file xpt.py.

Definition at line 157 of file xpt.py.


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