Class RuleSearchState

  • Direct Known Subclasses:
    PreconditionMatcher

    public class RuleSearchState
    extends java.lang.Object
    A simple class for holding stateful details of a rule search operation This is a dummy implementation for Saxon-HE which does not optimize searching a rule chain. It is subclassed for Saxon-EE.
    • Constructor Detail

      • RuleSearchState

        protected RuleSearchState()
    • Method Detail

      • checkPreconditions

        public boolean checkPreconditions​(Rule rule)
                                   throws XPathException
        Use this search state to check whether the preconditions for a particular rule are satisfied
        Parameters:
        rule - the rule being tested
        Returns:
        true if all preconditions are satisfied; in the HE implementation, there are no preconditions, so this is always true.
        Throws:
        XPathException - (in a subclass) if evaluation of preconditions fails.