Back to index

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

List of all members.

Public Member Functions

def setup
def resolve
def __getitem__
def append
def __len__

Public Attributes

 loc

Static Public Attributes

string name = 'if'
int minargs = 1
int maxargs = 3

Static Private Attributes

 __slots__ = Function.__slots__

Detailed Description

Definition at line 420 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.IfFunction.resolve (   self,
  makefile,
  variables,
  fd,
  setting 
)

Definition at line 432 of file functions.py.

00432 
00433     def resolve(self, makefile, variables, fd, setting):
00434         condition = self._arguments[0].resolvestr(makefile, variables, setting)
00435 
00436         if len(condition):
00437             self._arguments[1].resolve(makefile, variables, fd, setting)
00438         elif len(self._arguments) > 2:
00439             return self._arguments[2].resolve(makefile, variables, fd, setting)

Here is the caller graph for this function:

Reimplemented from pymake.functions.Function.

Definition at line 427 of file functions.py.

00427 
00428     def setup(self):
00429         Function.setup(self)
00430         self._arguments[0].lstrip()
00431         self._arguments[0].rstrip()


Member Data Documentation

Reimplemented from pymake.functions.Function.

Definition at line 425 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 423 of file functions.py.

Definition at line 422 of file functions.py.

string pymake.functions.IfFunction.name = 'if' [static]

Definition at line 421 of file functions.py.


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