Interface NodeVectorMatchMaker

All Superinterfaces:
NodePredicate
All Known Implementing Classes:
AnyGNode, NamedXNodeType, NodeKindType, SelectorTest

public interface NodeVectorMatchMaker extends NodePredicate
  • Method Summary

    Modifier and Type
    Method
    Description
    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

      IntPredicate getMatcher(NodeVectorTree tree)
      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 calling matchesNode(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.