Package lemon :: Package external :: Package gadfly :: Module semantics :: Class Constant
[show private | hide private]
[frames | no frames]

Class Constant

SimpleRecursive --+    
                  |    
    BoundExpression --+
                      |
                     Constant


Method Summary
  __init__(self, value)
  __add__(self, other)
  __div__(self, other)
  __hash__(self)
  __mul__(self, other)
  __neg__(self)
  __repr__(self)
  __sub__(self, other)
  attribute(self)
invent a pair to identify a constant...
  domain(self)
  equate(self, other)
return predicate equating self and other.
  initargs(self)
  relbind(self, dict, db)
  uncache(self)
prepare for execution, clear cached data.
  value(self, contexts)
return the constant value associated with self.
    Inherited from BoundExpression
  __coerce__(self, other)
  le(self, other)
predicate self<=other...
  lt(self, other)
predicate self<other...
    Inherited from SimpleRecursive
  demarshal(self, args)
  marshaldata(self)

Class Variable Summary
int contains_aggregate = 0                                                                     

Method Details

attribute(self)

invent a pair to identify a constant
Overrides:
lemon.external.gadfly.semantics.BoundExpression.attribute

equate(self, other)

return predicate equating self and other.
Overload for special cases, please!
Overrides:
lemon.external.gadfly.semantics.BoundExpression.equate (inherited documentation)

uncache(self)

prepare for execution, clear cached data.
Overrides:
lemon.external.gadfly.semantics.BoundExpression.uncache (inherited documentation)

value(self, contexts)

return the constant value associated with self.

Class Variable Details

contains_aggregate

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Nov 10 15:08:32 2003 http://epydoc.sf.net