Back to index

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

List of all members.

Public Member Functions

def __init__
def evaluate
def __str__

Public Attributes

 expected
 exp1
 exp2

Static Private Attributes

tuple __slots__ = ('exp1', 'exp2', 'expected')

Detailed Description

Definition at line 288 of file parserdata.py.


Constructor & Destructor Documentation

def pymake.parserdata.EqCondition.__init__ (   self,
  exp1,
  exp2 
)

Definition at line 291 of file parserdata.py.

00291 
00292     def __init__(self, exp1, exp2):
00293         assert isinstance(exp1, (data.Expansion, data.StringExpansion))
00294         assert isinstance(exp2, (data.Expansion, data.StringExpansion))
00295 
00296         self.expected = True
00297         self.exp1 = exp1
00298         self.exp2 = exp2


Member Function Documentation

Definition at line 304 of file parserdata.py.

00304 
00305     def __str__(self):
00306         return "ifeq (expected=%s) %s %s" % (self.expected, self.exp1, self.exp2)

def pymake.parserdata.EqCondition.evaluate (   self,
  makefile 
)

Definition at line 299 of file parserdata.py.

00299 
00300     def evaluate(self, makefile):
00301         r1 = self.exp1.resolvestr(makefile, makefile.variables)
00302         r2 = self.exp2.resolvestr(makefile, makefile.variables)
00303         return (r1 == r2) == self.expected


Member Data Documentation

tuple pymake.parserdata.EqCondition.__slots__ = ('exp1', 'exp2', 'expected') [static, private]

Definition at line 289 of file parserdata.py.

Definition at line 296 of file parserdata.py.

Definition at line 297 of file parserdata.py.

Definition at line 295 of file parserdata.py.


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