XPath expression translator interface.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
- author Jean-François Simon
- internal
CloneableInstantiable
- Implements
Stringable
Methods |
public __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false) |
public __toString() : string |
public addCondition(string $condition, string $operator = 'and') : static
|
public addNameTest() : static
|
public addStarPrefix() : static
|
public getCondition() : string |
public getElement() : string |
public join(string $combiner, self $expr) : static Joins another XPathExpr with a combiner.
|
Properties |
private string $condition |
private string $element |
private string $path |