public class PathFinder extends 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 | 
|---|---|
| Expression | getSelectionExpression()Get the underlying expression (usually a path expression or filter expression) | 
| SequenceIterator | selectNodes(DocumentInfo doc,
           XPathContext context)Select nodes in a document using this PatternFinder. | 
| 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()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.