$this->shortcutParsers
[] =
$shortcut;
return $this;
} /**
* @throws ExpressionErrorException
*/
public function nodeToXPath(NodeInterface
$node): XPathExpr
{ if (!
isset($this->nodeTranslators
[$node->
getNodeName()])) { throw new ExpressionErrorException(sprintf('Node "%s" not supported.',
$node->
getNodeName()));
} return $this->nodeTranslators
[$node->
getNodeName()]($node,
$this);
} /**
* @throws ExpressionErrorException
*/
public function addCombination(string
$combiner, NodeInterface
$xpath, NodeInterface
$combinedXpath): XPathExpr
{