Package com.saxonica.ee.trans
Class RuleEE
java.lang.Object
net.sf.saxon.trans.rules.Rule
com.saxonica.ee.trans.RuleEE
A Rule with associated preconditions
-
Field Summary
Fields inherited from class net.sf.saxon.trans.rules.Rule
action, minImportPrecedence, next, part, pattern, precedence, priority, sequence
-
Constructor Summary
ConstructorsConstructorDescriptionRuleEE
(Pattern p, RuleTarget o, int prec, int min, double prio, int seq, int part) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrecondition
(Precondition condition) Add a precondition for this ruleboolean
Check that all preconditions for this rule are satisfiedvoid
Add other exported properties as requiredGet the preconditions for this ruleMethods inherited from class net.sf.saxon.trans.rules.Rule
compareComputedRank, compareRank, export, getAction, getMinImportPrecedence, getNext, getPartNumber, getPattern, getPrecedence, getPriority, getRank, getSequence, isAlwaysMatches, matches, setAction, setAlwaysMatches, setNext, setPattern, setRank
-
Constructor Details
-
RuleEE
-
-
Method Details
-
getPreconditions
Get the preconditions for this rule- Returns:
- a list of preconditions that must be satisfied if this rule is to match
-
addPrecondition
Add a precondition for this rule- Parameters:
condition
- a precondition that must be satisfied if this rule is to match
-
checkPreconditions
Check that all preconditions for this rule are satisfied- Parameters:
state
- holds the state for matching all rules on a rule-chain, including values of common subexpressions- Returns:
- true if all preconditions are satisfied
- Throws:
XPathException
- if evaluation of a precondition fails
-
exportOtherProperties
Description copied from class:Rule
Add other exported properties as required- Overrides:
exportOtherProperties
in classRule
- Parameters:
out
- the export destination- Throws:
XPathException
-