Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Public Attributes
xpidl.Forward Class Reference

List of all members.

Public Member Functions

def __init__
def __eq__
def resolve
def isScriptable
def nativeType
def __str__

Public Attributes

 name
 location
 doccomments

Static Public Attributes

string kind = 'forward'

Detailed Description

Definition at line 374 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.Forward.__init__ (   self,
  name,
  location,
  doccomments 
)

Definition at line 377 of file xpidl.py.

00377 
00378     def __init__(self, name, location, doccomments):
00379         self.name = name
00380         self.location = location
00381         self.doccomments = doccomments


Member Function Documentation

def xpidl.Forward.__eq__ (   self,
  other 
)

Definition at line 382 of file xpidl.py.

00382 
00383     def __eq__(self, other):
00384         return other.kind == 'forward' and other.name == self.name

def xpidl.Forward.__str__ (   self)

Definition at line 405 of file xpidl.py.

00405 
00406     def __str__(self):
00407         return "forward-declared %s\n" % self.name

Definition at line 398 of file xpidl.py.

00398 
00399     def isScriptable(self):
00400         return True

def xpidl.Forward.nativeType (   self,
  calltype 
)

Definition at line 401 of file xpidl.py.

00401 
00402     def nativeType(self, calltype):
00403         return "%s %s" % (self.name,
00404                           calltype != 'in' and '* *' or '*')

def xpidl.Forward.resolve (   self,
  parent 
)

Definition at line 385 of file xpidl.py.

00385 
00386     def resolve(self, parent):
00387         # Hack alert: if an identifier is already present, move the doccomments
00388         # forward.
00389         if parent.hasName(self.name):
00390             for i in xrange(0, len(parent.productions)):
00391                 if parent.productions[i] is self: break
00392             for i in xrange(i + 1, len(parent.productions)):
00393                 if hasattr(parent.productions[i], 'doccomments'):
00394                     parent.productions[i].doccomments[0:0] = self.doccomments
00395                     break
00396 
00397         parent.setName(self)


Member Data Documentation

Definition at line 380 of file xpidl.py.

string xpidl.Forward.kind = 'forward' [static]

Definition at line 375 of file xpidl.py.

Definition at line 379 of file xpidl.py.

Definition at line 378 of file xpidl.py.


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