|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.axis.Axis
jd.xml.xpath.axis.AncestorAxis
AncestorAxis represents the ancestor axis. It is a ModelWalker for the ancestor nodes in reverse document order.
Field Summary | |
static Axis |
INSTANCE
The axis instance. |
Constructor Summary | |
protected |
AncestorAxis(String name,
boolean includeSelf)
|
Method Summary | |
ModelWalker |
getModelWalker()
Return this. |
void |
getNodes(XPathNode contextNode,
NodeTest nodeTest,
XMutableNodeSet result)
Get the nodes of the axis, filtered by the NodeTest. |
ModelWalker |
getProximityModelWalker()
Return this. |
protected XPathNode |
getStartNode(XPathNode contextNode)
|
XPathNode |
gotoFirstNode(XPathNode contextNode)
Return the getStartNode(contextNode). |
XPathNode |
gotoNextNode(XPathNode lastNode)
Return the parent. |
Methods inherited from class jd.xml.xpath.axis.Axis |
getFirstNode, getMaxResultSize, getMinResultSize, getName, getPrincipalNodeType, isDistinctAxis, isForwardAxis, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Axis INSTANCE
Constructor Detail |
protected AncestorAxis(String name, boolean includeSelf)
Method Detail |
public void getNodes(XPathNode contextNode, NodeTest nodeTest, XMutableNodeSet result)
getNodes
in class Axis
contextNode
- the context nodenodeTest
- the node testresult
- a nodeset for the matching nodes.public ModelWalker getModelWalker()
getModelWalker
in class Axis
public ModelWalker getProximityModelWalker()
getProximityModelWalker
in class Axis
public XPathNode gotoFirstNode(XPathNode contextNode)
gotoFirstNode
in interface ModelWalker
public XPathNode gotoNextNode(XPathNode lastNode)
gotoNextNode
in interface ModelWalker
lastNode
- a XPathNode obtained from the last call
to gotoFirstNode or gotoNextNode.
If the node is another node the behaviour is not determined.
protected XPathNode getStartNode(XPathNode contextNode)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |