|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.extra.PathFinder
public class PathFinder
This class enables a client to find all nodes in a document that match a particular pattern. In fact, it allows any subset of nodes in a document to be located. It is used specifically by the internal implementation of keys. In XSLT, the criterion for including nodes in a key is that they match an XSLT pattern. Internally, however, keys are used for a wider range of purposes, and the nodes indexed by the key are defined by a PatternFinder
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 treeMethod Detail |
---|
public 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 context
XPathException
public Expression getSelectionExpression()
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |