Package lxml :: Module cssselect :: Class XPathExpr
[hide private]
[frames] | no frames]

Class XPathExpr

source code

object --+
         |
        XPathExpr
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, prefix=None, path=None, element='*', condition=None, star_prefix=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
add_condition(self, condition) source code
 
add_path(self, part) source code
 
add_prefix(self, prefix) source code
 
add_name_test(self) source code
 
add_star_prefix(self)
Adds a /* prefix if there is no prefix. This is when you need to keep context's constrained to a single parent.
source code
 
join(self, combiner, other) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, prefix=None, path=None, element='*', condition=None, star_prefix=False)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)