All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seimicrawler.xpath.core.NodeTest Maven / Gradle / Ivy

Go to download

一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。

There is a newer version: 2.5.3
Show newest version
package org.seimicrawler.xpath.core;


/**
 * @author github.com/zhegexiaohuozi [email protected]
 * @since 2018/2/28.
 */
public interface NodeTest {
    /**
     * 支持的函数名
     */
    String name();

    /**
     * 函数具体逻辑
     * @param scope 上下文
     * @return 计算好的节点
     */
    XValue call(Scope scope);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy