Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Private Attributes
pymake.parserdata.ExportDirective Class Reference
Inheritance diagram for pymake.parserdata.ExportDirective:
Inheritance graph
[legend]
Collaboration diagram for pymake.parserdata.ExportDirective:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def execute
def dump

Public Attributes

 exp
 single

Static Private Attributes

tuple __slots__ = ('exp', 'single')

Detailed Description

Definition at line 436 of file parserdata.py.


Constructor & Destructor Documentation

def pymake.parserdata.ExportDirective.__init__ (   self,
  exp,
  single 
)

Definition at line 439 of file parserdata.py.

00439 
00440     def __init__(self, exp, single):
00441         assert isinstance(exp, (data.Expansion, data.StringExpansion))
00442         self.exp = exp
00443         self.single = single


Member Function Documentation

def pymake.parserdata.ExportDirective.dump (   self,
  fd,
  indent 
)

Definition at line 455 of file parserdata.py.

00455 
00456     def dump(self, fd, indent):
00457         print >>fd, "%sExport (single=%s) %s" % (indent, self.single, self.exp)

Here is the caller graph for this function:

def pymake.parserdata.ExportDirective.execute (   self,
  makefile,
  context 
)

Definition at line 444 of file parserdata.py.

00444 
00445     def execute(self, makefile, context):
00446         if self.single:
00447             vlist = [self.exp.resolvestr(makefile, makefile.variables)]
00448         else:
00449             vlist = list(self.exp.resolvesplit(makefile, makefile.variables))
00450             if not len(vlist):
00451                 raise data.DataError("Exporting all variables is not supported", self.exp.loc)
00452 
00453         for v in vlist:
00454             makefile.exportedvars[v] = True


Member Data Documentation

tuple pymake.parserdata.ExportDirective.__slots__ = ('exp', 'single') [static, private]

Definition at line 437 of file parserdata.py.

Definition at line 441 of file parserdata.py.

Definition at line 442 of file parserdata.py.


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