public class PathFinder extends java.lang.Object implements PatternFinder
| Constructor and Description |
|---|
PathFinder(Expression path)
Create a PathFinder that finds all the nodes returned by a particular expression when invoked
with the document node as context node
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Expression |
getSelectionExpression()
Get the underlying expression (usually a path expression or filter expression)
|
int |
hashCode() |
SequenceIterator |
selectNodes(DocumentInfo doc,
XPathContext context)
Select nodes in a document using this PatternFinder.
|
java.lang.String |
toString()
Get a string representation of the expression.
|
public PathFinder(Expression path)
path - an expression designed to be evaluated with the document node of a tree as the
context node, and which selects a set of nodes within the treepublic SequenceIterator selectNodes(DocumentInfo doc, XPathContext context) throws XPathException
selectNodes in interface PatternFinderdoc - the document node at the root of a treecontext - the dynamic evaluation contextXPathException - if a dynamic error is encounteredpublic Expression getSelectionExpression()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.