Base class for all terms.
Terms are non-modifiable. Changes are carried out by returning another
term instance.
|
|
__init__(self,
factory)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
|
|
|
|
__setattr__(self,
name,
value)
Prevent modification of term attributes. |
|
|
|
|
__delattr__(self,
name)
Prevent deletion of term attributes. |
|
|
|
|
getType(self)
Gets the type of this term. |
|
|
|
|
getHash(self)
Generate a hash value for this term. |
|
|
|
|
|
|
|
__hash__(self)
Generate a hash value for this term. |
|
|
|
|
isEquivalent(self,
other)
Checks for structural equivalence of this term agains another
term. |
|
|
|
|
isEqual(self,
other)
Checks equality of this term against another term. |
|
|
|
|
|
|
|
|
|
|
rmatch(self,
other)
Matches this term against a string pattern. |
|
|
|
|
accept(self,
visitor,
*args,
**kargs)
Accept a visitor. |
|
|
|
|
writeToTextFile(self,
fp)
Write this term to a file object. |
|
|
|
|
__str__(self)
Get the string representation of this term. |
|
|
|
|
|
|
Inherited from object:
__getattribute__,
__new__,
__reduce__,
__reduce_ex__
|