Class StXPath

  • All Implemented Interfaces:
    com.yegor256.xsline.Shift

    public final class StXPath
    extends Object
    implements com.yegor256.xsline.Shift
    This Shift finds all XPath matches and replaces them with what a function suggests.
    Since:
    0.29.0
    • Constructor Detail

      • StXPath

        public StXPath​(String path,
                       Function<com.jcabi.xml.XML,​Iterable<org.xembly.Directive>> func)
        Ctor.
        Parameters:
        path - The XPath
        func - The function
    • Method Detail

      • uid

        public String uid()
        Specified by:
        uid in interface com.yegor256.xsline.Shift
      • apply

        public com.jcabi.xml.XML apply​(int position,
                                       com.jcabi.xml.XML xml)
        Specified by:
        apply in interface com.yegor256.xsline.Shift