Package dogtail :: Module predicate :: Class Predicate
[hide private]
[frames] | no frames]

Class Predicate

source code

object --+
         |
        Predicate
Known Subclasses:

Abstract base class representing a predicate function on nodes.

It's more than just a function in that it has data and can describe itself

Instance Methods [hide private]
 
satisfiedByNode(self, node)
Pure virtual method returning a boolean if the predicate is satisfied by the node
source code
 
describeSearchResult(self, node) source code
 
makeScriptMethodCall(self, isRecursive)
Method to generate a string containing a (hopefully) readable search method call on a node (to be used when generating Python source code in the event recorder)
source code
 
makeScriptVariableName(self)
Method to generate a string containing a (hopefully) readable name for a Node instance variable that would be the result of a search on this predicate (to be used when generating Python source code in the event recorder).
source code
 
__eq__(self, other)
Predicates are considered equal if they are of the same subclass and have the same data
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__