Class StXnav

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

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

      • StXnav

        public StXnav​(String path,
                      Consumer<com.github.lombrozo.xnav.Xnav> 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