Package net.sf.saxon.pattern.nodetest
Class AnyGNode
java.lang.Object
net.sf.saxon.pattern.nodetest.AnyGNode
- All Implemented Interfaces:
NodePredicate,NodeVectorMatchMaker
-
Field Summary
Fields -
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.boolean
-
Field Details
-
TEST
-
-
Method Details
-
test
- Specified by:
testin interfaceNodePredicate
-
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).- Specified by:
getMatcherin interfaceNodeVectorMatchMaker- 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.
-