Back to index

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

List of all members.

Public Member Functions

def resolve
def __getitem__
def setup
def append
def __len__

Static Public Member Functions

def suffixes

Public Attributes

 loc

Static Public Attributes

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

Static Private Attributes

 __slots__ = Function.__slots__

Detailed Description

Definition at line 303 of file functions.py.


Member Function Documentation

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

Definition at line 32 of file functions.py.

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

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

Definition at line 47 of file functions.py.

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

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

Definition at line 43 of file functions.py.

00043 
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.SuffixFunction.resolve (   self,
  makefile,
  variables,
  fd,
  setting 
)

Definition at line 318 of file functions.py.

00318 
00319     def resolve(self, makefile, variables, fd, setting):
00320         util.joiniter(fd, self.suffixes(self._arguments[0].resolvesplit(makefile, variables, setting)))

Here is the call graph for this function:

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 functions.py.

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

def pymake.functions.SuffixFunction.suffixes (   words) [static]

Definition at line 311 of file functions.py.

00311 
00312     def suffixes(words):
00313         for w in words:
00314             dir, file = pathsplit(w)
00315             base, dot, suffix = util.strrpartition(file, '.')
00316             if base != '':
00317                 yield dot + suffix

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from pymake.functions.Function.

Definition at line 308 of file functions.py.

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

Definition at line 29 of file functions.py.

Reimplemented from pymake.functions.Function.

Definition at line 306 of file functions.py.

Definition at line 305 of file functions.py.

string pymake.functions.SuffixFunction.name = 'suffix' [static]

Definition at line 304 of file functions.py.


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