Back to index

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

List of all members.

Public Member Functions

def __init__
def resolve
def getValue
def __str__
def count

Public Attributes

 type
 name
 value
 location
 doccomments
 realtype
 iface
 basetype

Static Public Attributes

string kind = 'const'

Detailed Description

Definition at line 703 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.ConstMember.__init__ (   self,
  type,
  name,
  value,
  location,
  doccomments 
)

Definition at line 705 of file xpidl.py.

00705 
00706     def __init__(self, type, name, value, location, doccomments):
00707         self.type = type
00708         self.name = name
00709         self.value = value
00710         self.location = location
00711         self.doccomments = doccomments


Member Function Documentation

def xpidl.ConstMember.__str__ (   self)

Definition at line 726 of file xpidl.py.

00726 
00727     def __str__(self):
00728         return "\tconst %s %s = %s\n" % (self.type, self.name, self.getValue())

Here is the call graph for this function:

def xpidl.ConstMember.count (   self)

Definition at line 729 of file xpidl.py.

00729 
00730     def count(self):
00731         return 0

Definition at line 723 of file xpidl.py.

00723 
00724     def getValue(self):
00725         return self.value(self.iface)

Here is the caller graph for this function:

def xpidl.ConstMember.resolve (   self,
  parent 
)

Definition at line 712 of file xpidl.py.

00712 
00713     def resolve(self, parent):
00714         self.realtype = parent.idl.getName(self.type, self.location)
00715         self.iface = parent
00716         basetype = self.realtype
00717         while isinstance(basetype, Typedef):
00718             basetype = basetype.realtype
00719         if not isinstance(basetype, Builtin) or not basetype.maybeConst:
00720             raise IDLError("const may only be a short or long type, not %s" % self.type, self.location)
00721 
00722         self.basetype = basetype


Member Data Documentation

Definition at line 721 of file xpidl.py.

Definition at line 710 of file xpidl.py.

Definition at line 714 of file xpidl.py.

string xpidl.ConstMember.kind = 'const' [static]

Definition at line 704 of file xpidl.py.

Definition at line 709 of file xpidl.py.

Definition at line 707 of file xpidl.py.

Definition at line 713 of file xpidl.py.

Definition at line 706 of file xpidl.py.

Definition at line 708 of file xpidl.py.


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