Class RuleSearchState

  • Direct Known Subclasses:

    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
        rule - the rule being tested
        true if all preconditions are satisfied; in the HE implementation, there are no preconditions, so this is always true.
        XPathException - (in a subclass) if evaluation of preconditions fails.