cn.wanghaomiao.xpath.model.Predicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JsoupXpath Show documentation
Show all versions of JsoupXpath Show documentation
一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。
package cn.wanghaomiao.xpath.model;
import cn.wanghaomiao.xpath.util.OpEm;
/**
* xpath语法节点的谓语部分,即要满足的限定条件
* @author 汪浩淼 [[email protected] [email protected]]
* @since 14-3-7 下午3:36
*/
public class Predicate {
private OpEm opEm;
private String left;
private String right;
private String value;
public OpEm getOpEm() {
return opEm;
}
public void setOpEm(OpEm opEm) {
this.opEm = opEm;
}
public String getLeft() {
return left;
}
public void setLeft(String left) {
this.left = left;
}
public String getRight() {
return right;
}
public void setRight(String right) {
this.right = right;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}