Class RuleSearchState

java.lang.Object
net.sf.saxon.trans.rules.RuleSearchState
Direct Known Subclasses:
PreconditionMatcher

public class RuleSearchState extends 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 Details Link icon

    • RuleSearchState Link icon

      protected RuleSearchState()
  • Method Details Link icon

    • getInstance Link icon

      public static RuleSearchState getInstance()
    • checkPreconditions Link icon

      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.