Back to index

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

List of all members.

Public Member Functions

def __init__
def setup
def resolve
def __getitem__
def append
def __len__

Public Attributes

 loc
 vname
 maxargs

Static Private Attributes

tuple __slots__ = ('vname', 'loc')

Detailed Description

Definition at line 50 of file functions.py.


Constructor & Destructor Documentation

def pymake.functions.VariableRef.__init__ (   self,
  loc,
  vname 
)

Definition at line 53 of file functions.py.

00053 
00054     def __init__(self, loc, vname):
00055         self.loc = loc
00056         assert isinstance(vname, (data.Expansion, data.StringExpansion))
00057         self.vname = vname
        

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

Definition at line 61 of file functions.py.

00061 
00062     def resolve(self, makefile, variables, fd, setting):
00063         vname = self.vname.resolvestr(makefile, variables, setting)
00064         if vname in setting:
00065             raise data.DataError("Setting variable '%s' recursively references itself." % (vname,), self.loc)
00066 
00067         flavor, source, value = variables.get(vname)
00068         if value is None:
00069             log.debug("%s: variable '%s' was not set" % (self.loc, vname))
00070             return
00071 
00072         value.resolve(makefile, variables, fd, setting + [vname])

Here is the caller graph for this function:

Reimplemented from pymake.functions.Function.

Definition at line 58 of file functions.py.

00058 
00059     def setup(self):
00060         assert False, "Shouldn't get here"


Member Data Documentation

tuple pymake.functions.VariableRef.__slots__ = ('vname', 'loc') [static, private]

Reimplemented from pymake.functions.Function.

Definition at line 51 of file functions.py.

Reimplemented from pymake.functions.Function.

Definition at line 54 of file functions.py.

Definition at line 56 of file functions.py.


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