Package net.sf.saxon.pattern.nodetest
Interface NodeVectorMatchMaker
- All Superinterfaces:
NodePredicate
- All Known Implementing Classes:
AnyGNode,NamedXNodeType,NodeKindType,SelectorTest
-
Method Summary
Modifier and TypeMethodDescriptiongetMatcher(NodeVectorTree tree) Get a matching function that can be used to test whether numbered nodes in a TinyTree or DominoTree satisfy the node test.Methods inherited from interface net.sf.saxon.pattern.nodetest.NodePredicate
test
-
Method Details
-
getMatcher
Get a matching function that can be used to test whether numbered nodes in a TinyTree or DominoTree satisfy the node test. (Calling this matcher must give the same result as callingmatchesNode(tree.getNode(nodeNr)), but it may well be faster).- Parameters:
tree- the tree against which the returned function will operate- Returns:
- an IntPredicate; the matches() method of this predicate takes a node number as input, and returns true if and only if the node identified by this node number matches the node predicate.
-