Back to index

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

List of all members.

Public Member Functions

def __init__
def isScriptable
def nativeType

Public Attributes

 name
 nativename
 signed
 maybeConst

Static Public Attributes

string kind = 'builtin'
 location = BuiltinLocation

Detailed Description

Definition at line 125 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.Builtin.__init__ (   self,
  name,
  nativename,
  signed = False,
  maybeConst = False 
)

Definition at line 129 of file xpidl.py.

00129 
00130     def __init__(self, name, nativename, signed=False, maybeConst=False):
00131         self.name = name
00132         self.nativename = nativename
00133         self.signed = signed
00134         self.maybeConst = maybeConst


Member Function Documentation

Definition at line 135 of file xpidl.py.

00135 
00136     def isScriptable(self):
00137         return True

def xpidl.Builtin.nativeType (   self,
  calltype,
  shared = False,
  const = False 
)

Definition at line 138 of file xpidl.py.

00138 
00139     def nativeType(self, calltype, shared=False, const=False):
00140         if const:
00141             print >>sys.stderr, IDLError("[const] doesn't make sense on builtin types.", self.location, warning=True)
00142             const = 'const '
00143         elif calltype == 'in' and self.nativename.endswith('*'):
00144             const = 'const '
00145         elif shared:
00146             if not self.nativename.endswith('*'):
00147                 raise IDLError("[shared] not applicable to non-pointer types.", self.location)
00148             const = 'const '
00149         else:
00150             const = ''
00151         return "%s%s %s" % (const, self.nativename,
00152                             calltype != 'in' and '*' or '')


Member Data Documentation

string xpidl.Builtin.kind = 'builtin' [static]

Definition at line 126 of file xpidl.py.

Definition at line 127 of file xpidl.py.

Definition at line 133 of file xpidl.py.

Definition at line 130 of file xpidl.py.

Definition at line 131 of file xpidl.py.

Definition at line 132 of file xpidl.py.


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