The basic interface is {@link XPath#findAll ParseTree.findAll}{@code (tree, pathString, parser)}. But that is just shorthand for:
{@link XPath} p = new {@link XPath#XPath XPath}(parser, pathString); return p. {@link #evaluate evaluate}(tree);
See {@code org.antlr.v4.test.TestXPath} for descriptions. In short, thisallows operators:
and path elements:
Whitespace is not allowed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|