@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XPathEvaluator")
public class XPathEvaluator
extends java.lang.Object
Constructor and Description |
---|
XPathEvaluator() |
Modifier and Type | Method and Description |
---|---|
XPathExpression |
createExpression(java.lang.String expression)
This method compiles an XPathExpression which can then be used for (repeated) evaluations of the XPath expression.
|
XPathExpression |
createExpression(java.lang.String expression,
XPathNSResolver resolver)
This method compiles an XPathExpression which can then be used for (repeated) evaluations of the XPath expression.
|
XPathNSResolver |
createNSResolver(Node nodeResolver)
This method adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.
|
XPathResult |
evaluate(java.lang.String expression,
Node contextNode)
The evaluate() method of the XPathEvaluator interface executes an XPath expression on the given node or document and returns an XPathResult.
|
XPathResult |
evaluate(java.lang.String expression,
Node contextNode,
XPathNSResolver resolver)
The evaluate() method of the XPathEvaluator interface executes an XPath expression on the given node or document and returns an XPathResult.
|
XPathResult |
evaluate(java.lang.String expression,
Node contextNode,
XPathNSResolver resolver,
int type)
The evaluate() method of the XPathEvaluator interface executes an XPath expression on the given node or document and returns an XPathResult.
|
XPathResult |
evaluate(java.lang.String expression,
Node contextNode,
XPathNSResolver resolver,
int type,
XPathResult result)
The evaluate() method of the XPathEvaluator interface executes an XPath expression on the given node or document and returns an XPathResult.
|
@Nonnull public XPathExpression createExpression(@Nonnull java.lang.String expression, @Nullable XPathNSResolver resolver)
@Nonnull public XPathExpression createExpression(@Nonnull java.lang.String expression)
@Nonnull public XPathNSResolver createNSResolver(@Nonnull Node nodeResolver)
@Nonnull public XPathResult evaluate(@Nonnull java.lang.String expression, @Nonnull Node contextNode, @Nullable XPathNSResolver resolver, int type, @Nullable XPathResult result)
@Nonnull public XPathResult evaluate(@Nonnull java.lang.String expression, @Nonnull Node contextNode, @Nullable XPathNSResolver resolver, int type)
@Nonnull public XPathResult evaluate(@Nonnull java.lang.String expression, @Nonnull Node contextNode, @Nullable XPathNSResolver resolver)
@Nonnull public XPathResult evaluate(@Nonnull java.lang.String expression, @Nonnull Node contextNode)