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 |
---|---|
boolean |
equals(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.
|
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 PatternFinder
doc
- the document node at the root of a treecontext
- the dynamic evaluation contextXPathException
- if a dynamic error is encounteredpublic Expression getSelectionExpression()
public String toString()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.