Package common :: Module registry :: Class MultiPredicate
[frames] | no frames]

Class MultiPredicate

source code

Predicate --+
            |
           MultiPredicate

base class for compound selector classes

Instance Methods
 
__init__(self, *selectors) source code
 
__str__(self) source code
 
search_selector(self, selector)
search for the given selector or selector instance (or tuple of selectors) in the selectors tree.
source code

Inherited from Predicate: __and__, __call__, __iand__, __invert__, __ior__, __or__, __rand__, __repr__, __ror__, func_name

Class Methods
 
merge_selectors(cls, selectors)
deal with selector instanciation when necessary and merge multi-selectors if possible:
source code
Method Details

__str__(self)
(Informal representation operator)

source code 
Overrides: Predicate.__str__

merge_selectors(cls, selectors)
Class Method

source code 
deal with selector instanciation when necessary and merge
multi-selectors if possible:

AndPredicate(AndPredicate(sel1, sel2), AndPredicate(sel3, sel4))
==> AndPredicate(sel1, sel2, sel3, sel4)

search_selector(self, selector)

source code 
search for the given selector or selector instance (or tuple of
selectors) in the selectors tree. Return None if not found

Overrides: Predicate.search_selector