Package net.sf.saxon.trans.rules
Class RuleChain
java.lang.Object
net.sf.saxon.trans.rules.RuleChain
A chain of rules: actually in this incarnation just a pointer to the first rule in the chain, the others
being linked together each to the next.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the length of the rule chainboolean
Ask whether the rule chain has optimization data, requiring allocation of a PreconditionMatcher when searching the rule chainhead()
Get the first rule in the chain, or null if the chain is emptyvoid
Set the first rule in the chain, or null if the chain is empty
-
Field Details
-
optimizationData
-
-
Constructor Details
-
RuleChain
public RuleChain()Create an empty rule chain -
RuleChain
Create an rule chain with a give rule as the _head of the chain- Parameters:
head
- the _head of a chain of rules
-
-
Method Details
-
head
Get the first rule in the chain, or null if the chain is empty- Returns:
- the first rule in the chain, or null if empty
-
setHead
Set the first rule in the chain, or null if the chain is empty- Parameters:
head
- the first rule in the chain, or null if empty
-
getLength
public int getLength()Get the length of the rule chain- Returns:
- the number of rules in the chain
-
hasOptimizationData
public boolean hasOptimizationData()Ask whether the rule chain has optimization data, requiring allocation of a PreconditionMatcher when searching the rule chain- Returns:
- true if there is optimization data associated with the rule chain.
-