Class AbstractDocument.XPathExpr

  • All Implemented Interfaces:
    org.w3c.dom.xpath.XPathExpression
    Enclosing class:
    AbstractDocument

    protected class AbstractDocument.XPathExpr
    extends java.lang.Object
    implements org.w3c.dom.xpath.XPathExpression
    A compiled XPath expression.
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathExpr​(java.lang.String expr, org.w3c.dom.xpath.XPathNSResolver res)
      Creates a new XPathExpr object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object evaluate​(org.w3c.dom.Node contextNode, short type, java.lang.Object res)
      DOM: Implements XPathExpression.evaluate(Node,short,Object).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • xpath

        protected javax.xml.xpath.XPathExpression xpath
        The compiled XPath expression.
      • resolver

        protected org.w3c.dom.xpath.XPathNSResolver resolver
        The namespace resolver.
    • Constructor Detail

      • XPathExpr

        public XPathExpr​(java.lang.String expr,
                         org.w3c.dom.xpath.XPathNSResolver res)
                  throws org.w3c.dom.DOMException,
                         org.w3c.dom.xpath.XPathException
        Creates a new XPathExpr object.
        Throws:
        org.w3c.dom.DOMException
        org.w3c.dom.xpath.XPathException
    • Method Detail

      • evaluate

        public java.lang.Object evaluate​(org.w3c.dom.Node contextNode,
                                         short type,
                                         java.lang.Object res)
                                  throws org.w3c.dom.xpath.XPathException,
                                         org.w3c.dom.DOMException
        DOM: Implements XPathExpression.evaluate(Node,short,Object).
        Specified by:
        evaluate in interface org.w3c.dom.xpath.XPathExpression
        Throws:
        org.w3c.dom.xpath.XPathException
        org.w3c.dom.DOMException