| 程序包 | 说明 |
|---|---|
| org.seimicrawler.xpath.core.axis | |
| org.seimicrawler.xpath.util |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AncestorOrSelfSelector
the ancestor-or-self axis contains the context node and the ancestors of the context node;
thus, the ancestor axis will always include the root node
|
class |
AncestorSelector
the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of
the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include
the root node, unless the context node is the root node
|
class |
AttributeSelector
the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element
|
class |
ChildSelector
the child axis contains the children of the context node
|
class |
DescendantOrSelfSelector
the descendant-or-self axis contains the context node and the descendants of the context node
|
class |
DescendantSelector
the descendant axis contains the descendants of the context node; a descendant is a child or a child
of a child and so on; thus the descendant axis never contains attribute or namespace nodes
|
class |
FollowingSelector
the following axis contains all nodes in the same document as the context node that are after the context node in
document order, excluding any descendants and excluding attribute nodes and namespace nodes
|
class |
FollowingSiblingOneSelector
the following-sibling-one JsoupXpath自定义扩展,比较常用
|
class |
FollowingSiblingSelector
the following-sibling axis contains all the following siblings of the context node; if the context node is an
attribute node or namespace node, the following-sibling axis is empty
|
class |
ParentSelector
the parent axis contains the parent of the context node, if there is one
https://www.w3.org/TR/1999/REC-xpath-19991116/#NT-AxisSpecifier
|
class |
PrecedingSelector
the preceding axis contains all nodes in the same document as the context node that are before the context
node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes
|
class |
PrecedingSiblingOneSelector
the preceding-sibling-one axis JsoupXpath自定义扩展,用于选取节点的前一个兄弟节点,如果存在的话。
|
class |
PrecedingSiblingSelector
the preceding-sibling axis contains all the preceding siblings of the context node; if the context node is
an attribute node or namespace node, the preceding-sibling axis is empty
|
class |
SelfSelector
the self axis contains just the context node itself
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AxisSelector |
Scanner.findSelectorByName(java.lang.String selectorName) |
Copyright © 2018. All Rights Reserved.