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
Methods |
public __construct(?Symfony |
public addAttributeMatching(Symfony
|
public addCombination(string $combiner, Symfony
|
public addFunction(Symfony
|
public addPseudoClass(Symfony
|
public cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::') : string |
public getExtension(string $name) : Symfony
|
public static getXpathLiteral(string $element) : string |
public nodeToXPath(Symfony
|
public registerExtension(Symfony
|
public registerParserShortcut(Symfony
|
public selectorToXPath(Symfony |
Properties |
private array $attributeMatchingTranslators = [] |
private array $combinationTranslators = [] |
private array $extensions = []
|
private array $functionTranslators = [] |
private Symfony |
private array $nodeTranslators = [] |
private array $pseudoClassTranslators = [] |
private array $shortcutParsers = []
|
Methods |
private parseSelectors(string $css) : array
|
Methods |
public static getXpathLiteral(string $element) : string |