Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Public Attributes
pymake.functions.EvalFunction Class Reference
Inheritance diagram for pymake.functions.EvalFunction:
Inheritance graph
Collaboration diagram for pymake.functions.EvalFunction:
Collaboration graph

List of all members.

Public Member Functions

def resolve
def __getitem__
def setup
def append
def __len__

Public Attributes


Static Public Attributes

string name = 'eval'
int minargs = 1
int maxargs = 1

Detailed Description

Definition at line 537 of file

Member Function Documentation

def pymake.functions.Function.__getitem__ (   self,
) [inherited]

Definition at line 32 of file

00033     def __getitem__(self, key):
00034         return self._arguments[key]

def pymake.functions.Function.__len__ (   self) [inherited]

Definition at line 47 of file

00048     def __len__(self):
00049         return len(self._arguments)

def pymake.functions.Function.append (   self,
) [inherited]

Definition at line 43 of file

00044     def append(self, arg):
00045         assert isinstance(arg, (data.Expansion, data.StringExpansion))
00046         self._arguments.append(arg)

Here is the caller graph for this function:

def pymake.functions.EvalFunction.resolve (   self,

Definition at line 542 of file

00543     def resolve(self, makefile, variables, fd, setting):
00544         if makefile.parsingfinished:
00545             # GNU make allows variables to be set by recursive expansion during
00546             # command execution. This seems really dumb to me, so I don't!
00547             raise data.DataError("$(eval) not allowed via recursive expansion after parsing is finished", self.loc)
00549         stmts = parser.parsestring(self._arguments[0].resolvestr(makefile, variables, setting),
00550                                    'evaluation from %s' % self.loc)
00551         stmts.execute(makefile)

Here is the caller graph for this function:

def pymake.functions.Function.setup (   self) [inherited]

Reimplemented in pymake.functions.IfFunction, pymake.functions.SubstitutionRef, and pymake.functions.VariableRef.

Definition at line 35 of file

00036     def setup(self):
00037         argc = len(self._arguments)
00039         if argc < self.minargs:
00040             raise data.DataError("Not enough arguments to function %s, requires %s" % (, self.minargs), self.loc)
00042         assert self.maxargs == 0 or argc <= self.maxargs, "Parser screwed up, gave us too many args"

Member Data Documentation

Reimplemented in pymake.functions.SubstitutionRef, and pymake.functions.VariableRef.

Definition at line 29 of file

Reimplemented from pymake.functions.Function.

Definition at line 540 of file

Definition at line 539 of file

string = 'eval' [static]

Definition at line 538 of file

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