Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
xpidl.IDL Class Reference

List of all members.

Public Member Functions

def __init__
def setName
def getName
def hasName
def getNames
def __str__
def resolve
def includes
def needsJSTypes

Public Attributes

 productions
 deps
 namemap
 incdirs
 parser

Detailed Description

Definition at line 290 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.IDL.__init__ (   self,
  productions 
)

Definition at line 291 of file xpidl.py.

00291 
00292     def __init__(self, productions):
00293         self.productions = productions
00294         self.deps = []


Member Function Documentation

def xpidl.IDL.__str__ (   self)

Definition at line 310 of file xpidl.py.

00310 
00311     def __str__(self):
00312         return "".join([str(p) for p in self.productions])

def xpidl.IDL.getName (   self,
  id,
  location 
)

Definition at line 298 of file xpidl.py.

00298 
00299     def getName(self, id, location):
00300         try:
00301             return self.namemap[id]
00302         except KeyError:
00303             raise IDLError("type '%s' not found" % id, location)

def xpidl.IDL.getNames (   self)

Definition at line 307 of file xpidl.py.

00307 
00308     def getNames(self):
00309         return iter(self.namemap)

def xpidl.IDL.hasName (   self,
  id 
)

Definition at line 304 of file xpidl.py.

00304 
00305     def hasName(self, id):
00306         return id in self.namemap

def xpidl.IDL.includes (   self)

Definition at line 320 of file xpidl.py.

00320 
00321     def includes(self):
00322         for p in self.productions:
00323             if p.kind == 'include':
00324                 yield p

def xpidl.IDL.needsJSTypes (   self)

Definition at line 325 of file xpidl.py.

00325 
00326     def needsJSTypes(self):
00327         for p in self.productions:
00328             if p.kind == 'interface' and p.needsJSTypes():
00329                 return True
00330         return False

def xpidl.IDL.resolve (   self,
  incdirs,
  parser 
)

Definition at line 313 of file xpidl.py.

00313 
00314     def resolve(self, incdirs, parser):
00315         self.namemap = NameMap()
00316         self.incdirs = incdirs
00317         self.parser = parser
00318         for p in self.productions:
00319             p.resolve(self)

def xpidl.IDL.setName (   self,
  object 
)

Definition at line 295 of file xpidl.py.

00295 
00296     def setName(self, object):
00297         self.namemap.set(object)


Member Data Documentation

Definition at line 293 of file xpidl.py.

Definition at line 315 of file xpidl.py.

Definition at line 314 of file xpidl.py.

Definition at line 316 of file xpidl.py.

Definition at line 292 of file xpidl.py.


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